Merge pull request #757 from sveneh/vim

improved vim aliases
pull/758/head
Nils Winkler 2016-07-15 11:25:36 +02:00 committed by GitHub
commit 7415134878
1 changed files with 4 additions and 2 deletions

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