Content License

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.

 
Home Content My compiled Vim, everywhere in the system, on Ubuntu

My compiled Vim, everywhere in the system, on Ubuntu

Posted by tibi at Feb 08, 2011 01:47 PM |

Due to the unavailability of the latest vim (7.3) in latest released Ubuntu (they're stuck at 7.2), I have compiled my own vim binary. Even more, I don't want the system 7.2 even to be installed in the system. I use Midnight Commander as a shell for my console tasks and I want my vim to be integrated it it. Fortunately, MC uses the Debian alternatives system, so it was easy for me to configure my system to use Vim everywhere.

First, I have compiled vim with the prefix as $HOME, so it is installed in ~/bin and automatically available in $PATH. Next, I ran:

sudo update-alternatives --install /usr/bin/editor editor /home/tibi/bin/vim 10

This created a new alternatives option. Next I've selected it as default with

select-editor

Installing and selecting a view alternatives was just as easy:

sudo update-alternatives --install /usr/bin/view view /home/tibi/bin/view 10
sudo update-alternatives --config view
Document Actions