Sunday, February 15, 2009

Debian: Change default editor from Nano to Vim

I use Vi(m) almost exclusively, however the default text editor in Debian 5 is nano. If you are like me and want to change the default editor simply type the following.

update-alternatives --config editor

Select the line number containing the vim option and your set.

0 comments: