VI (VIM) MODE Flashcards
Understanding Vi
1
Q
Exit vi mode for file4, but do NOT save the contents of the file
A
1) Esc
2) :q!
2
Q
When skimming a file in vi, skip to the beginning of the file
A
[[
3
Q
]]
A
Skips to the end of the file in vi
4
Q
Start a new line above the previous line
A
O
5
Q
Start a new line below the previous line
A
o
6
Q
Delete a line
A
dd
7
Q
Undo previous changes
A
u
8
Q
Appends text after cursor
A
a
9
Q
Move cursor to the end of the line
A
A
10
Q
Move cursor to the left
A
h
11
Q
Move cursor down
A
j
12
Q
Move cursor to the right
A
l
13
Q
Move cursor up
A
k
14
Q
Move to the next word
A
w
15
Q
Move to next word after each blank space
A
W