[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: nano vs VI



Paul Cartwright <pbcartwright@gmail.com> writes:

> ok, so I have a wheezy setup. When I do a crontab -e to EDIT my crontab,
> it brings up a nano session. I'm a VI kind guy, how do I change that so
> VI comes up??

Most generally, you should set the environmental variable EDITOR to be
your favorite editor.  For example, my ~/.profile has the line
EDITOR=emacs

On Debian specifically, you can use update-alternatives(8) to change
what /etc/alternatives/editor symbolically links to.


Reply to: