Thursday, June 9, 2011

Linux - change default editor (usually `vi`) - set new editor: `mcedit`

To change the default editor (for commands like `crontab -e`), run:
export VISUAL='mcedit'
export EDITOR='mecedit'

Both above lines should be added to ~/.bashrc in order to keep this setting permanent.

Change default editor in MC (Midnight Commander):
In mc menu select: Options -> Configuration -> use internal edit

No comments: