improved version of open file in new tab
parent
d05c88a23b
commit
2c86ecc7da
|
|
@ -7,11 +7,13 @@ MVIM=$(command -v mvim)
|
||||||
|
|
||||||
[[ -n $VIM ]] && alias v=$VIM
|
[[ -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
|
case $OSTYPE in
|
||||||
darwin*)
|
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
|
esac
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue