skorokithakis / pastery.vim

A Vim plugin for the sweetest pastebin in the world, pastery.net.
https://www.pastery.net/
9 stars 5 forks source link

Add feature to open pasted url automatically. #1

Closed efine closed 8 years ago

efine commented 8 years ago

I'd like to see what was just pasted automatically to be opened in my web browser. This pull request adds a Vim setting to do that:

let g:pastery_open_in_browser = 0|1

It's off (0) by default.

It also creates a vim variable, pastery_result_url, that contains the URL of the last pasted snippet (or the empty string). It does this regardless of the value of g:pastery_open_in_browser.