Translation(s): English - Español - Français - German - العربية - Italiano - 日本語 (Nihongo) - Русский - 简体中文


Text editors that can be used without X11, in a command line environment.


Text editors that can be used in a graphical environment.

How to set a default text editor

For administrator

You can set a text editor as default with the update-alternatives command:

update-alternatives --set editor /path/to/the/chosen/editor


update-alternatives --config editor

and to see the list of possible paths:

update-alternatives --list editor

Then, just use the editor command instead of vim, emacs or nano for example.

For users

You have to set the environment variable "$EDITOR".
E.g.: to use Emacs as default text editor, just add in your ~/.profile file:

export EDITOR=emacs