开发者

How to stop vim from defaulting to older version?

开发者 https://www.devze.com 2023-02-14 04:22 出处:网络
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\'

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 open开发者_开发百科s 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.


Not sure about zsh, but I know in bash you have to export the variables EDITOR or SVN_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).


Make sure your vim location is on your $PATH, ahead of the location where it is installed system-wide.

0

精彩评论

暂无评论...
验证码 换一张
取 消