Tag Info

New answers tagged


You could also set your default text editor by using the following command. sudo update-alternatives --config editor


Vim is widely considered to be the better editor for everyday use. If you have the choice between vi or vim, go with vim. That being said, vi has its niche. It's very simple and is present on nearly every UNIX-like system in existence. If you find yourself sitting at the terminal of a system you know nothing about, even if it's a very esoteric system like a ...


.exrc is the configuration file for vi, whereas .vimrc is the config file for vim No. Vim will use the .vimrc file if present, otherwise the .exrc file if present Yes, unless you only put vi-compatible commands in there From the Vim help on exrc: c. Four places are searched for initializations. The first that exists is used, the others are ignored. ...

Top 50 recent answers are included