Skip to content

Instantly share code, notes, and snippets.

View artumi-richard's full-sized avatar

Richard Fletcher artumi-richard

View GitHub Profile
@artumi-richard
artumi-richard / .vimrc
Created August 30, 2016 14:05
.vimrc function for VimWIki Thunderlink
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'