Compose repeatable Changes
There are many ways to implement an action in Vim, but choosing a method that performs the least steps can make the method more repeatable.
The following text we want to delete nigh.
1) Delete Backward
The cursor starts at H ,
d
Represents the Delete command, which b
represents the first character of the word to be deleted (excluding the first character).
Then x
delete this character.
2) Delete Forward
The cursor starts at H ,
b
Move the cursor over the first character of the word,
d
Represents the delete command, which means the deletion of the range to the first word of the next word in the w
Word prompt (excluding the first character),nigh no other words, so the nigh are deleted.
3) Delete an entire Word
The cursor begins at H , which d
represents the Delete command, which indicates that the aw
deletion range is the entire word of the cursor.
[Practical.vim (2012.9)]. DREW.NEIL.TIP09 Study Summary