Results 1 to 3 of 3
When I run vi, vim 6.1 opens. How do I change this to vim 6.3 (which has also been installed)?...
- 08-29-2009 #1Just Joined!
- Join Date
- Dec 2008
- Posts
- 16
Change vi command to run vim 6.3
When I run vi, vim 6.1 opens. How do I change this to vim 6.3 (which has also been installed)?
- 08-30-2009 #2
Sounds like you have it installed in two different locations. Do:
You'll likely have an exacutable in /usr/bin. If so, do:Code:whereis vim
and see if it points to vim 6.1. If it is a symlink to 6.1, make a new symlink from /usr/bin/vi to point to the exacutable in vim 6.3.Code:ls -l /usr/bin/vi
- 08-31-2009 #3
Depending on what your environment is (for instance, a shared work server), Dapper Dan's solution may not be feasible.
Find the location of the Vim 6.3 binary. Then add the following line to your ~/.bashrc file:
Then log out and log back in.Code:alias vim="/path/to/vim6.3"
This defines an alias for your user, which is basically a replacement for a command. From now on, the "vim" command will redirect to the vim6.3 command, and all will be well.DISTRO=Arch
Registered Linux User #388732


Reply With Quote