Skip to content

Quick tip: change default text editor on Linux shell

Doing visudo you get nano instead of your favorite text editor?
Mine is vim therefore I issue:

DEBIAN/UBUNTU way

Selecting 4 I’m ready to use my full syntax colors when I edit any file.

OTHER DISTROS
Edit your .bashrc file and add the following:

Next login you will have your VIM working.
If you want to have it immediately and only for this session just type

and press Enter.

comments powered by Disqus