fix(vim-aliases): make alias dependant on envvar

pull/1734/head
Ron Green 2020-12-27 18:05:11 +02:00 committed by GitHub
parent d74cc615be
commit e94b9420ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

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