Show Menu

Vi4Nico Cheat Sheet by

Vi
vi     editor     vim     it

Controls

:w
Save
:x
Save & Exit
:q
Exit if no changes made
:q!
Exit & discard any changes

Navigation

h
Cursor left
j
Cursor down
k
Cursor up
l
Cursor right
w
Next Word
W
Next Blank delimited word
b
Start of word
B
Start of blank delimited work
e
End of word
E
End of blank delimited work
0
Beginning of line
$
End of line
1G
Start of file
G
End of file
:n
nth line

Searching

/string
Search forward for string
/?string
Search backwards for string
n
Go to next match
N
Go to previous match
:set ic
Ignore case while searching
set noic
Case-s­ens­itive searching
*
Search for next instance of current word
#
Search for last instance of current word
 

Inserting

i
Insert before cursor
a
Append after cursor
A
Append after line
o
Add new line after current line
O
Add new line before current line
r
Overwrite one character
R
Overwrite many characters
C
Rewrite the rest of line
cc
Rewrite the whole line
cw
Rewrite the word
yw
Copy word
yy
Copy line
p
Put copied line

Deleting

x
Delete character to right of cursor
X
Delete character to left of cursor
D
Delete the rest of line
dd
Delete the line
dw
Delete the word

Other

u
Undo last change
U
Undo all changes to line
J
Join lines
nJ
Join next n lines
.
Repeat last command

Download the Vi4Nico Cheat Sheet

1 Page
//media.cheatography.com/storage/thumb/nico2t_vi4nico.750.jpg

PDF (recommended)

Alternative Downloads

Share This Cheat Sheet!

 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          VI Editor Cheat Sheet
          Vim Cheat Sheet