Tip9: Compose Repeatable Change

January 12, 2021 ยท View on GitHub

Goal: delete the word nigh

Delete Backward

tip9_1

db

delete from the cursor's starting position to the beginning of the word, but it leaves the final h intact. comment: dot repeats the single character deletion(. == x)

Delete Forward

tip9_2

b

put the cursor into position of the starting of the word.

dw

delete from the cursor position to the begining of the next word. comment: dot isn't useful cause cursor is already at end of the line(no next word). at least: . == dw

Delete an Entire Word

tip9_3

daw

delete the current word and also delete a whitespace character. comment: dot repeats the instruction to delete a word. . == daw

Tip8 Tip10