Merge pull request #168 from hiberabyss/macurl

follow url silently in mac
This commit is contained in:
EinfachToll 2015-11-26 09:32:51 +01:00
commit 8231433bad

View File

@ -380,7 +380,7 @@ function! vimwiki#base#system_open_link(url) "{{{
execute 'silent ! start "Title" /B ' . url execute 'silent ! start "Title" /B ' . url
endfunction endfunction
function! s:macunix_handler(url) function! s:macunix_handler(url)
execute '!open ' . shellescape(a:url, 1) call system('open ' . shellescape(a:url).' &')
endfunction endfunction
function! s:linux_handler(url) function! s:linux_handler(url)
call system('xdg-open ' . shellescape(a:url).' &') call system('xdg-open ' . shellescape(a:url).' &')