Ive just installed ubuntu 16.04.2 32 bit on a digital ocean server.
Digital ocean has tweaked the ubuntu install a bit, for example they have installed full vim as part of the block image they use in their VPS's. I now want to use this - pre-installed - vim as my default editor. so I run
sudo update-alternatives --config editor
which gives this menu
$ sudo update-alternatives --config editor
There are 4 choices for the alternative editor (providing /usr/bin/editor).
Selection Path Priority Status
------------------------------------------------------------
* 0 /bin/nano 40 auto mode
1 /bin/ed -100 manual mode
2 /bin/nano 40 manual mode
3 /usr/bin/vim.basic 30 manual mode
4 /usr/bin/vim.tiny 10 manual mode
Press <enter> to keep the current choice[*], or type selection number:
note: vim is not there as an option
Im thinking digital ocean has not added the vim install to the update-alternatives system?
What is the recommended way to get the /user/bin/vim
program added to this menu?
I guess I could overwrite the /usr/bin/editor
symlink that the alternatives system adds or maybe add a symlink in /etc/alternatives
pointing to /usr/bin/vim
? but I would like to try the "official" way before I do my "hack" on top of the digital ocean hack.