Scrolling while keeping j
or k
pressed is too slow. Doing 10j
multiple times isn't ideal either.
How can I go faster while keeping a key pressed ? I'm using vim for vscode but I imagine the solution probably applies there too.
You can make Vim scroll the text using the shifted up/down arrows by mapping Shift-Up to Ctrl-Y and Shift-Down to Ctrl-E. Shift-Down will then scroll down (like moving a scroll-bar down, or like moving a cursor at the bottom of a window down), and Shift-Up will then scroll up (like moving a scroll-bar up, etc).
In normal mode or in insert mode, press Alt-j to move the current line down, or press Alt-k to move the current line up. After visually selecting a block of lines (for example, by pressing V then moving the cursor down), press Alt-j to move the whole block down, or press Alt-k to move the block up.
Press the ESC key to change normal mode. Press the CTRL+u key in order to 1/2 page down or 1/2 move forward.
If you are looking to speed up the time to get to a specific spot, having many pages. These commands support to keep the keys press if needed to increase speed:
ctrl + f (page down)
ctrl + b (page up)
ctrl + d (scroll window downwards, normally half a a screen)
ctrl + u (scroll window upwards, normally half a a screen)
I believe you're looking for a better way to navigate between say code blocks or similar sections without having to do recursive j's or k's. These are my personal favorites :
if you're still wanting to explore more navigation tricks and commands, i strongly recommend you to watch this wonderful talk.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With