Last active
June 27, 2018 15:44
-
-
Save veirus/23a0ef6f31df265454d453ad1e1fed85 to your computer and use it in GitHub Desktop.
Mappings for easier line navigation with <j> and <k> when `wrap` is on
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment