5 years ago
Right way to jk in your buffer with set wrap
on. All credits goes to bluz71.
" screen line scroll - very useful with wrap on " https://bluz71.github.io/2017/05/15/vim-tips-tricks.html nnoremap <expr> j v:count ? (v:count > 5 ? "m'" . v:count : '') . 'j' : 'gj' nnoremap <expr> k v:count ? (v:count > 5 ? "m'" . v:count : '') . 'k' : 'gk'