It shows a menu to change the current association. In Ubuntu, the system default seems to be set with sudo update-alternatives -config editor. (And the impressive thing is: they were actually used as a common standard.) The two variables where in use long before files named *.desktop or mime* even existed. Without the -E here, you would end up with a default of nano again ![]() nvi claims to be 'bug for bug' compatible with vi. You may want to study the output of apt-cache search editor grep vi and look for other alternatives. To make use of the editor in visudo actually, we need to handle that sudo does not keep the environment variables by normally. Decide which vi-compatible tool you want to use. I assume nano was the value of one or both variables. Or more POSIX-correct VISUAL="vim" export VISUAL Open and edit /. ![]() Just set the VISUAL environment variable: export VISUAL=vimĪdd this too ~/.bashrc to make it permanent.Īs you seem to use vim in general, set both VISUAL and EDITOR: export VISUAL="vim" As a user, you cannot change the setting for the whole system, but you can add an alias for editor to let say vim. The problem is not that it does not apply to nano, it's that it does not apply to the shell:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |