Merge pull request #757 from sveneh/vim

improved vim aliases
This commit is contained in:
Nils Winkler
2016-07-15 11:25:36 +02:00
committed by GitHub

View File

@@ -7,11 +7,13 @@ MVIM=$(command -v mvim)
[[ -n $VIM ]] && alias v=$VIM
# open vim in new tab is taken from
# http://stackoverflow.com/questions/936501/let-gvim-always-run-a-single-instancek
case $OSTYPE in
darwin*)
[[ -n $MVIM ]] && alias mvim="mvim --remote-tab"
[[ -n $MVIM ]] && function mvimt { command mvim --remote-tab-silent "$@" || command mvim "$@"; }
;;
*)
[[ -n $GVIM ]] && alias gvim="gvim -b --remote-tab"
[[ -n $GVIM ]] && function gvimt { command gvim --remote-tab-silent "$@" || command gvim "$@"; }
;;
esac