improved version of open file in new tab

pull/757/head
sveneh 2015-08-08 23:53:42 +02:00 committed by sveneh
parent d05c88a23b
commit 2c86ecc7da
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 mvimt="mvim --remote-tab"
[[ -n $MVIM ]] && function mvimt { command mvim --remote-tab-silent "$@" || command mvim "$@"; }
;;
*)
[[ -n $GVIM ]] && alias gvimt="gvim --remote-tab"
[[ -n $GVIM ]] && function gvimt { command gvim --remote-tab-silent "$@" || command gvim "$@"; }
;;
esac