Change the default editor
0
I ran into this with CentOS 5. Where the default editor for the system is set to nano!
I like vi and wanted to change the default to it.
- login to the system
- vi .bashrc
- Add the following two lines to .bashrc
- run the command, source .bashrc
- A change to /etc/bashrc will make it a system wide change
1 2 |
export EDITOR="vim" export VISUAL="vim" |