Skip to content

Instantly share code, notes, and snippets.

@elig0n
Created February 10, 2019 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elig0n/87cd6d581653acf708e99ccc7b1fe9b5 to your computer and use it in GitHub Desktop.
Save elig0n/87cd6d581653acf708e99ccc7b1fe9b5 to your computer and use it in GitHub Desktop.
function! Browser ()
let line = getline (".")
let line = matchstr (line, "http\\=:.[^ ,;\t]*")
exec "!\"C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe\"\ " . line
endfunction
map <Leader>B :call Browser ()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment