Modes Flashcards
Repeats the last change
.
Increases indentation until end of line
> G
Scans line for a specific character after the cursor
f + char
Scans line a specific character before the cursor
F + char
Repeat last find forward command
;
Repeat last find backwards command
,
In one letter,
(1) Delete the character under the cursor
(2) Enter Insert Mode
s
Undo a change
u
Delete from the cursor’s position to the beginning of a word
db
(1) Generally, this is the best way to delete a word
(2) Why so?
(1) daw
(2) This is more repeatable via . than alternatives like dbx and bdw
Copy a line
Y or yy
(1) Add by one
(2) Add by five
(1)
(2) 5
(1) Subtract by one
(2) Subtract by five
(1)
(2) 5
Delete three words
3dw or d3w
Two ways to delete a single character
x or dl