function! Browser () let line = getline (".") let line = matchstr (line, "http[^ ]*") exec "!netscape ".line endfunction map <Leader>w :call Browser ()<CR>
<<Best of VIM Tips (VIM's best Features) | annoying "Hit any key to close this window..." >>