Install vim from source on CentOS
To install vim from source on CentOS server, run
1 2 3 4 5 6 7 8 |
yum -y install ncurses-devel cd /usr/local/src wget https://github.com/vim/vim/archive/master.zip unzip master.zip cd vim-master/src/ ./configure make make install |
This will install latest version of vim. You can start it with command
1 |
vim |
To get it work with “vi” command, i removed preinstalled vim editor with command
1 |
rpm -e --nodeps vim-minimal |
Now create a symlink with
1 |
ln -s /usr/local/bin/vim /bin/vi |