My compiled Vim, everywhere in the system, on Ubuntu
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
