Vim

From Citizendium
Revision as of 22:14, 16 April 2007 by imported>Joshua David Williams (creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The vim text editor running in a terminal emulator

vim is a modal plain text editor. Although it is most commonly used in Unix-like systems, it has also been ported to Microsoft Windows. Vim is an open source clone of vi, and is an acronym for Vi improved.

Like vi, vim contains two basic editing modes: command mode and insert mode. In command mode, nearly every keystroke is received as a command. For example, if a user types ":wq", vim will write the document and quit. To move the cursor, one would use J to go down a line, K to go up a line, H to scroll one character to the left, and L to scroll one character to the right. Due to this unique approach, the user is rarely, if ever, required to remove his hands from the keyboard, thus making the interface very ergonomic.

In insert mode, nearly every key is interpreted as printed text. This is where the document itself is actually composed. This modal approach to editing is often confusing to new users who cannot understand why the text they type is not appearing on the screen. It is often useful for novice users to read a tutorial on using the application before they are required to use it.

Related topics

External links

Vim project page