Vi Flashcards
1
Q
vi filename
A
Edit file.
2
Q
vim filename
A
Same as vi, but more features.
3
Q
view filename
A
Starts vim in read-only mode.
4
Q
3 Types of Modes
A
Command Mode, Insert Mode, Line Mode
5
Q
k
A
Up one line
6
Q
j
A
Down one line
7
Q
h
A
left one character
8
Q
l
A
right one character
9
Q
w
A
right one word
10
Q
b
A
left one word
11
Q
A
go to the beginning of the line
12
Q
$
A
go to the end of the line
13
Q
i
A
insert at the cursor position
14
Q
I (this is a upper case i)
A
insert at the beginning of the line
15
Q
a
A
Append after the cursor position