3 ms·
I use zz a lot, I also like C-d and C-u which scroll the document up and down without moving the cursor. I've mapped these to C-j and C-k to make them easier to
by fleekonpoint 4y ago
I use zz a lot, I also like C-d and C-u which scroll the document up and down without moving the cursor. I've mapped these to C-j and C-k to make them easier to use:
nnoremap <C-j> 4<C-d>
nnoremap <C-k> 4<C-u>
vnoremap <C-j> 4<C-d>
vnoremap <C-k> 4<C-u>
I set it to scroll 4 lines at a time but you can tweak the number to make it scroll faster or slower.
Unrelated but I also have a command to remove highlighting from search results:
nnoremap <silent> <C-l> :nohl<CR><C-l>