I have the latest version of vim installed in my home dir (I’m a user on a shared environment), with all my customizations and stuff. I’ve set alias vim=$HOME/path_to_vim_dir, in my .zshrc file. I’ve also set EDITOR=vim, SVN_EDITOR=vim. However, anytime I do a commit operation without -m "..." in either git or svn, or even when editing crontab, the version of vim that opens up is an old version somewhere in /usr/share/… how do I stop this and get vim (no matter which program calls it) to default to my version? I’ve also tried setting EDITOR=$HOME/path_to_vim_dir/bin/vim, but that has no effect either.
I have the latest version of vim installed in my home dir (I’m a
Share
Not sure about zsh, but I know in bash you have to export the variables
EDITORorSVN_EDITOR. Simply setting them doesn’t do the trick.Also, set it to the absolute path of the binary (path_to_your_home/path_to_vim_dir/vim).