If you ever have to work on a Linux system, it is well advised to have a basic knowledge of using the vi editor. This is not be confused with the editor war. Here I’m only highlighting the practical benefits of being familiar with vi.
- It is installed by default (seen as a standard system utility) and is available on all Linux distributions since it is part of the POSIX standard as well as the Single UNIX Specification. All other editors (including nano, emacs) are optional or additional installations.
- It is a lightweight application and can work in stripped down versions of Linux.
- It is a console based text editor which works without a Graphical User Interface. This comes in handy especially when logging into a machine remotely, which is quite common on Linux.
- It gets invoked by default in a number of shell commands like
As much as new users find it painful, some users get along fine with
vi in small doses. For those coming from a Windows background, learning vi/Vim by comparison with a typical GUI text editor is recommended.
Note that vi and Vim are not the same. When possible, install
Vim (Vi IMproved) which is an additional package. It is more “user friendly” than standard