Vim Mode
Vim is an editor to create or edit a text file.
Command Mode
In the command mode, user can move around the file, delete text, etc.
Exit Commands
File Manipulation Commands
Text Deletion Commands
Yank Commands
Paste
Undo
Change from command mode to insert mode
From command mode to insert mode type a/A/i/I/o/O ( see details below)
Insert Mode
In the insert mode, user can insert text.
Changing mode from one to another
Change from insert mode to command mode
From insert mode to command mode type Esc (escape key)
Some useful commands for VIM
To create a page break, while in the insert mode, press the CTRL key
And l. ^L will appear in your text and will cause the printer to start
A new page.
Other Useful Commands
Most commands can be repeated n times by typing a number, n, before
the command. For example 10dd means delete 10 lines.
. Repeat last command
cw Change current word to a new word
r Replace one character at the cursor position
R Begin overstrike or replace mode � use ESC key to exit
:/ pattern Search forward for the pattern
:? pattern Search backward for the pattern
n (used after either of the 2 search commands above to
continue to find next occurrence of the pattern.
:g/pat1/s//pat2/g replace every occurrence of pattern1 (pat1) with
Last updated