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