3 ms·
For better scrolling: nmap <C-j> 3j3<C-e> nmap <C-k> 3k3<C-y> (replace "3" with whatever number you like best). These shortcuts will enable you to scr
by mihaifm 10y ago
For better scrolling:
nmap <C-j> 3j3<C-e>
nmap <C-k> 3k3<C-y>
(replace "3" with whatever number you like best).
These shortcuts will enable you to scroll the text, while keeping the cursor fixed. It's similar to web page scrolling. It helpls you type in code while maintaining an overview on what's going on below and above it.
Add these to your .vimrc and use them for some time. You'll thank me later.
- weaksauce 10y agoI could see using that with J and K because I use c-(hjkl) for moving between open buffers in a tab. Nice tip though. map <C-h> <C-w>h map <C-j> <C-w>j map <C-k> <C-w>k map <C-l> <C-w>l