This question already has an answer here:
When I use visudo, it always opens it with nano editor. How to change the editor to vim?
|
This question already has an answer here: When I use |
||||
marked as duplicate by Eliah Kagan, αғsнιη, Radu Rădeanu Oct 20 '14 at 11:44This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. |
||||
|
|
||||
|
Type You will get a text like below.
Find |
|||||||||
|
|
If you want just to make your user use by default a different editor, add
in your
and now all the programs that call an editor (and are well written) will default to As noticed by @EliahKagan (thanks!) in the comment, this will not work for
the
Finally, as hinted here, you can also add a line to your
A word of warning: when modifying your |
|||||||||||||||||||||
|