On 10/19/2012 8:35 AM, tyru wrote: > Hi Sayth Renshaw > > Try this script: > http://www.vim.org/scripts/script.php?script_id=3133 > > On Thu, Oct 18, 2012 at 8:26 AM, Sayth Renshaw <[email protected]> wrote: >> Hi >> >> I have been looking for a way to send a html file to browser to review >> it. There is a lot of attempts, there is one here on stackoverflow >> http://stackoverflow.com/questions/8708154/open-current-file-in-web-browser-in-vim >> >> Which uses >> nmap <silent> <leader>w :exec 'silent !google-chrome % &' >> >> But apparently that isn't working according to responses. I am on >> windows and vim. >> >> Is there a way to adapt this or is there a better solution or plugin? >> >> Sayth >> >> -- >> You received this message from the "vim_use" maillist. >> Do not top-post! Type your reply below the text you are replying to. >> For more information, visit http://www.vim.org/maillist.php >
Hi Sayth, This works for me on my windows 7 machine: nnoremap <silent> <leader>w :!start "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" file://%:p<CR> Regards, Bill -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
