fix(vim-aliases): join '$VIM' statements

pull/1734/head
Ron Green 2020-12-28 10:58:02 +02:00
parent e94b9420ac
commit d6e2b04708
1 changed files with 6 additions and 4 deletions

View File

@ -5,10 +5,12 @@ VIM=$(command -v vim)
GVIM=$(command -v gvim)
MVIM=$(command -v mvim)
[[ -n $VIM ]] && alias v='$VIM'
if [[ -n $VIM ]]; then
alias v='$VIM'
# open the vim help in fullscreen incorporated from
# https://stackoverflow.com/a/4687513
[[ -n $VIM ]] && alias vimh='${VIM} -c ":h | only"'
alias vimh='${VIM} -c ":h | only"'
fi
# open vim in new tab is taken from
# http://stackoverflow.com/questions/936501/let-gvim-always-run-a-single-instancek