Refracta Development, Scripts, etc.
Post a reply

vim not listed by update-alternatives

Thu Mar 03, 2016 12:39 am

No vim:
root@refracta:/home/user# 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/nano 40 manual mode
2 /usr/bin/mcedit 25 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:


root@refracta:/home/user# apt-cache policy vim
vim:
Installed: 2:7.4.488-7
Candidate: 2:7.4.488-7
Version table:
*** 2:7.4.488-7 0
990 http://us.mirror.devuan.org/merged/ jessie/main i386 Packages
100 /var/lib/dpkg/status

Solution:
root@refracta:/home/user# update-alternatives --install /usr/bin/editor editor /usr/bin/vim 10

root@refracta:/home/user# update-alternatives --config editor
There are 5 choices for the alternative editor (providing /usr/bin/editor).

Selection Path Priority Status
------------------------------------------------------------
* 0 /bin/nano 40 auto mode
1 /bin/nano 40 manual mode
2 /usr/bin/mcedit 25 manual mode
3 /usr/bin/vim 10 manual mode
4 /usr/bin/vim.basic 30 manual mode
5 /usr/bin/vim.tiny 10 manual mode

Press enter to keep the current choice[*], or type selection number: 3
update-alternatives: using /usr/bin/vim to provide /usr/bin/editor (editor) in manual mode
root@refracta:/home/user#

---
I don't recall ever having experienced such.
But as the solution was given at stackoverflow, it seems to happen ...
vim sure was to be found at etc/update-alternatives.
No biggie, i guess.
Post a reply