Vim Tips Wiki
Advertisement

I was having a hard time finding a simple solution for this. I don't know if there is a better way to achieve it but it works for me.

map <F8> <Esc>:!firefox % &<CR><CR>  => for Firefox

OR

map <F7> <Esc>:!chromium-browser % &<CR><CR>   =>for Chromium

Comments

This is good for last saved version. Is there any way to export current buffer content?

Related tips

Above has some links to related tips, and I have lots of other notes that I have been wanting to sort out in order to clean up all the "launch document" and "launch browser" tips. Later I will try to recommend where this content should be kept. JohnBeckett 09:05, October 24, 2011 (UTC)

Advertisement