Basics Flashcards
(49 cards)
1
Q
Save and quit
A
ZZ
2
Q
Revert to last saved version
A
:e!
3
Q
Quit and don’t save
A
:q!
4
Q
Left one space
A
h
5
Q
Down one line
A
j
6
Q
Up one line
A
k
7
Q
Right one space
A
l
8
Q
Display line numbers
A
:set nu
9
Q
Don’t display line numbers
A
:set nu!
10
Q
Insert space at 10 chars from right margin
A
:set wm=10
11
Q
Beginning of line
A
0
12
Q
End of line
A
$
13
Q
Move forward by word, counting symbols
A
w
14
Q
Move forward by word, not counting symbols
A
W
15
Q
Move backward by word, counting symbols
A
b
16
Q
Move backward by word, not counting symbols
A
B
17
Q
Change to the end of the word
A
cw
18
Q
Change back 2 words
A
c2b
19
Q
Change to the end of the line
A
c$
20
Q
Change to the beginning of the line
A
c0
21
Q
Replace one character
A
r
22
Q
Go into overstrike mode
A
R
23
Q
Change entire line
A
S
24
Q
Change 3 entire lines
A
3S
25
Chase case of character under the cursor
~
26
Change the case of 5 characters
5~
27
Delete word
dw
28
Delete from cursor to the end of the line
D
29
Delete the character under the cursor
x
30
Undo last command
u
31
Restore line before any changes
U
32
Insert
i
33
Append
a
34
Append text to end of current line
A
35
Insert text at the beginning of the current line.
I
36
Delete character at cursor and substitute text.
s
37
Delete line and substitute text.
S
38
Open blank line below cursor for text
o
39
Open blank line above cursor for text
O
40
Join current line with line below
J
41
To first character of next line
+
42
To first character of previous line
-
43
To end of word
e or E
44
Repeat last action
.
45
Transpose two letters
xp
46
Put last deleted thing into the buffer after the cursor
p
47
Put last deleted thing into the buffer before the cursor
P
48
Copy word to buffer
yw
49
Copy line to buffer
yy or Y