Created
February 10, 2019 22:29
-
-
Save elig0n/87cd6d581653acf708e99ccc7b1fe9b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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