I am trying to change the default editor from nano
to vim
.
I have run the following commands:
sudo update-alternatives --config editor
and
update-alternatives --config editor
Both now output:
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
I have restarted my ssh session and restarted sshd but crontab -e still opens in nano
What else do I need to do?