fix(vim-aliases): make alias dependant on envvar
parent
d74cc615be
commit
e94b9420ac
|
|
@ -5,11 +5,10 @@ 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'
|
||||||
# open the vim help in fullscreen incorporated from
|
# open the vim help in fullscreen incorporated from
|
||||||
# https://stackoverflow.com/a/4687513
|
# https://stackoverflow.com/a/4687513
|
||||||
alias vimh='${VIM} -c ":h | only"'
|
[[ -n $VIM ]] && alias vimh='${VIM} -c ":h | only"'
|
||||||
|
|
||||||
[[ -n $VIM ]] && alias v='$VIM'
|
|
||||||
|
|
||||||
# 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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue