Moving 10 lines up and down may not correspond to your task, as well as other parameters. Let's consider other movements:
Ctrl+f , Ctrl+b forward and backward.
} , { move forward and backward in one paragraph.
You can write the rules in your vimrc to bind 10j to a key, say J , to move 10 lines by adding the following line to your vimrc file: map <Sj> 10j
However, you must rewrite the useful existing J command (concatenate two lines). Finding a convenient combination of unused keys for 10j / 10k can be difficult, so I suggest using the existing movements that I talked about.
You may also know that you can move back to the word that you see ?someword and go to the word that you see by running /someword . This will be faster than trying to move up / down 10 lines and then moving the cursor to the exact location. If you are not thinking of a simple search string for a given string, you can always go to the line number, as you said ( xgg ).
Olhovsky Feb 07 2018-11-11T00: 00Z
source share