␡
- Before You Start
- Running Vim for the First Time
- Editing for the First Time
- Other Editing Commands
- Using a Count to Edit Faster
- The Vim Tutorial
Like this article? We recommend
Using a Count to Edit Faster
Suppose you want to move up nine lines. You can type kkkkkkkkk or you can enter the command 9k.
In fact, you can precede all the movement commands with a number. Earlier in this article, for instance, you added three exclamation points to the end of a line by typing a!!!<Esc>. Another way to do this is to use the command 3a!<Esc>. The count of 3 tells the a command to insert what follows (!) three times.
Similarly, to delete three characters, use the command 3x.