R
Rob
Guest
One thing I hate is going in to edit a crontab or run visudo and being forced to use pico instead of my text editor of choice (vim). Here's how to change the default editor for your system..
Open up /etc/bashrc in your favorite editor and look for the lines:
Now, change it to the one you'd like to use for tools like crontab or visudo:
You'll have to log out then back in, but now the default editor on your system is of your choosing.
Open up /etc/bashrc in your favorite editor and look for the lines:
Code:
export EDITOR="pico"
export VISUAL="pico"
Now, change it to the one you'd like to use for tools like crontab or visudo:
Code:
export EDITOR="vim"
export VISUAL="vim"
You'll have to log out then back in, but now the default editor on your system is of your choosing.