In my laptop, if I type below
$ which vi
alias vi='vim'
/usr/bin/vim
Now I want to change the vi alias to another bin, e.g. vim_wrapper
a script created in /usr/bin/, I type this line:
alias vi="vim_wrapper"
in ~/.bashrc
or /etc/bashrc
, but take no effects. So How to change the default vi alias vi='vim' to vi='vim_wrapper'? Thanks for help!