vscripts/vimwiki

9 lines
253 B
Text
Raw Normal View History

2017-02-02 18:49:44 +02:00
#!/usr/bin/bash
2018-06-29 16:58:43 +03:00
case $1 in
-g) VIM=$(command -v gvim);;
-n) VIM=$(command -v nvim) || VIM=$(command -v vim);;
*) VIM=$(command -v tvim);;
esac
VIMWIKI_RC="$HOME/vimwiki/.vimwikirc"
exec flock -w0 "$VIMWIKI_RC" "$VIM" -c "source $VIMWIKI_RC"