"Joe's own editor" does not come naturally to me. How do I change to using nano or vim?
I've tried
export EDITOR=nano
but it doesn't seem to be respected. I'd like visudo to respect this as well.
|
"Joe's own editor" does not come naturally to me. How do I change to using nano or vim? I've tried
but it doesn't seem to be respected. I'd like |
||||
|
To change the default editor at the system level:
and then follow the onscreen prompts. |
||||
|
|
The way to change the default editor for your account is to set the
Under the Debian policy, all programs are supposed to support Under Debian and derivatives, you can use the alternatives mechanism to set the system-wide default editor, as mentioned by Steve Robillard: run |
|||
|
|
EDITOReach time you start the shell. Try this:echo "export EDITOR=nano" >> ~/.bashrc. – Bryan Dunsmore Jul 10 '12 at 3:05~/.bashrc, to~/.profile. See Alternative to .bashrc – Gilles Jul 11 '12 at 0:15