When a program in Ubuntu such as crontab -e or dch -i, is used to edit a file, it uses a helper program called sensible-editor. sensible-editor attempts to intelligently find an editor on your system based on a few simple rules. Basically, if you haven’t already defined $EDITOR, it will use one of {nano, nano-tiny, vi}, in that order.
Full story »
