Set the default editor in Debian

categories:

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!


Did you find an issue in this article?

- click on the following Github link
- log into Github with your account
- click on the line number containing the error
- click on the "..." button
- choose "Reference in new issue"
- add a title and your comment
- click "Submit new issue"

Your feedback is much appreciated! πŸ€œπŸΌπŸ€›πŸΌ

You can also drop me a line below!