Tutorial by Examples

In Normal Mode, commands can be entered by direct key combinations (typing u to undo the last change, for example). These commands often have equivalents in 'ex' mode, accessed by typing a colon :, which drops you into a single-line buffer at the bottom of the Vim window. In 'ex' mode, after typing...
Undo Command:Descriptionuu,undoUndo the most recent change5uUndo the five most recent changes (use any number) Please be aware that in Vim, the 'most recent change' varies according to the mode you are in. If you enter Insert Mode (i) and type out an entire paragraph before dropping back to Normal...
The Repeat command, executed with the dot or period key (.), is more useful than it first appears. Once learned, you will find yourself using it often. Command:Description.Repeat the last change10.Repeat the last change 10 times So then, for a very simple example, if you make a change to line 1 by...
In Vim, these operations are handled differently from what you might be used to in almost any other modern editor or word processor (Ctrl-C, Ctrl-X, Ctrl-V). To understand, you need to know a little about registers and motions. Note: this section will not cover Visual Mode copying and cutting or ra...
Completion can be used to match words used in a document. When typing a word, Ctrlp or Ctrln will match previous or next similar words in the document. This can even be combined with Ctrl-X mode to complete entire lines. For instance type something like: This is an example sentence. then go to ...

Page 1 of 1