vim count command
I am a linux novice and just starting to learn Vim. I am having trouble with what my online book is calling the "count" command.
It allows you to multiply a commands execution x number of times.
My ":3a!" does nothing. ":9k" gives the error E16: Invalid Range. I made sure I press Escape before entering the command. Other letter combinations I have tried haven't work yet either, obviously.
The paragraph from the book "vim book" that I found on sourceforge.
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 chapter, 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.