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! VimwikiLinkHandler(link) | |
" Use Vim to open external files with the 'vfile:' scheme. E.g.: | |
" 1) [[vfile:~/Code/PythonProject/abc123.py]] | |
" 2) [[vfile:./|Wiki Home]] | |
" And thunder links https://github.com/poohsen/thunderlink | |
let link = a:link | |
if link =~# '^thunderlink:' | |
try | |
exec "silent !setsid gnome-open \'" . a:link ."\'" | |
exec 'silent !setsid wmctrl -a Thunderbird' |