Merge pull request #235 from rafaelregis/fix_vim_alias
Fixed vim alias.
This commit is contained in:
commit
73ea651afd
@ -32,8 +32,10 @@ alias ae='vi $yadr/zsh/aliases.zsh' #alias edit
|
||||
alias ar='source $yadr/zsh/aliases.zsh' #alias reload
|
||||
|
||||
# vim using
|
||||
if [ "$(command -v brew)" ]; then
|
||||
alias vim=$(brew ls macvim | grep Contents/MacOS/Vim)
|
||||
mvim --version > /dev/null 2>&1
|
||||
MACVIM_INSTALLED=$?
|
||||
if [ $MACVIM_INSTALLED -eq 0 ]; then
|
||||
alias vim="mvim -v"
|
||||
fi
|
||||
|
||||
# vimrc editing
|
||||
|
Loading…
Reference in New Issue
Block a user