vi Editor

Why learn vi or Vim?

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 man, less and git.

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 vi.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s