Better line jumping with count.

This commit is contained in:
Sebastian 2021-12-02 10:38:36 +01:00
parent f48d8f1238
commit 2d5fffcbdd

View file

@ -221,8 +221,9 @@ set omnifunc=syntaxcomplete#Complete
set scrolloff=8 set scrolloff=8
" Jump to wrapped line instead of next real line. " Jump to wrapped line instead of next real line.
nnoremap j gj nnoremap <expr> k (v:count == 0 ? 'gk' : 'k')
nnoremap k gk nnoremap <expr> j (v:count == 0 ? 'gj' : 'j')
" Use e and E to jump to start or end of a line. " Use e and E to jump to start or end of a line.
nnoremap e ^ nnoremap e ^