20.4.09

Replace vi with nano or pico

In most of linux/unix OS default text editor is vi.
If you can't remember all vi switches, you don't have to.
Just replace you default editor vi with user friendly nano or pico

First figure out the path to the binary file {path}

#which pico
or
#which nano

Second change your EDITOR variable

#export EDITOR={path}/pico
or
#export EDITOR={path}/pico

If you want make this change permanent, just add previews rows to ~/.bashrc if you use bash or ~/.cshrc if you use csh etc...



share on: facebook

1 comment: