How do I change the default editor in Linux?
- Log in to your account using SSH.
- Open the . bashrc file in your preferred text editor.
- Add the following lines to the .bashrc file.
- Save the changes to the .
- To make the new default text editor settings take effect, log out of your account and then log back in.
What is the default editor in Ubuntu? By default, nano is the text editor in Ubuntu. Sometimes you may need to change the default text editor for applications like crontab, that require a text editor. For example, if you are comfortable with vi then you may want to set the default text editor to vi. There are two ways to do this.
How do I change my default editor?
- Start the registry editor (regedit.exe)
- Move to HKEY_CLASSES_ROOTbatfileshelleditcommand.
- Double click on default.
- Change the value to the editor you want to use, e.g. for word change it to.
- Once completed click OK and close the registry editor.
How do I make Vim my default editor in Ubuntu? On Ubuntu (or other Debian-based systems), update-alternatives can be used to change the default editor: sudo update-alternatives –config editor # Type the number which corresponds to Vim here (after installing it) then press Enter.