Better line jumping with count.
This commit is contained in:
parent
f48d8f1238
commit
2d5fffcbdd
1 changed files with 3 additions and 2 deletions
|
|
@ -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 ^
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue