Set the default editor in Debian


I can never seem to remember that command.. always starting the command with alt.. then tab-tab-tab for autocompletion.. but nothing relevant shows up..

Here it is : sudo update-alternatives --config editor

Under Red Hat, both update-alternatives and alternatives commands work.

Or one can always manually symlink editor to vim under /etc/alternatives

Thanks for reading this post!

If you found an issue in this article, you can create an issue on Github.

If you have a comment or question, please drop me a line below!