
vi Commands | 729
vi
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
Insert Commands
The following commands work in insert mode.
'" (apostrophe quote) Move to position when last editing the file. {vim}
`[, `] (backquote bracket) Move to beginning/end of previous text operation. {vim}
'[, '] (apostrophe bracket) Like preceding, but return to start of line where operation occurred. {vim}
`. (backquote period) Move to last change in file. {vim}
'. (apostrophe period) Like preceding, but return to start of line. {vim}
`0 Position where you last exited vim. {vim}
:marks List active marks. {vim}
Command Action
a Append after cursor.
A Append to end of line.
c Begin change operation.
C Change to end of line.
gI Insert at beginning of line. {vim}
i Insert before cursor.
I Insert at beginning of line.
o Open a line below cursor.
O Open a line above cursor.
R Begin overwriting text.
s Substitute a character.
S Substitute entire line.
ESC Terminate insert mode.
Command Action
Backspace Delete previous character.
Delete Delete current character.
Tab Insert a tab.
Ctrl-A Repeat last insertion. {vim}
Ctrl-D Shift line left to previous shift width. {vim}
Ctrl-E Insert character found just below cursor. {vim}
Ctrl-H Delete previous character (same as Backspace).
Ctrl-I Insert a tab.
Ctrl-K Begin insertion of multi-keystroke character.
Ctrl-N Insert next completion ...