Mappings: add s:nowait to j and k
This commit is contained in:
parent
3a1ed53393
commit
881246ed5c
|
@ -738,10 +738,10 @@ function! s:set_mappings() abort
|
||||||
" Prevent 'nnoremap j gj' mappings, since they would break navigation.
|
" Prevent 'nnoremap j gj' mappings, since they would break navigation.
|
||||||
" (One can't leave the [x].)
|
" (One can't leave the [x].)
|
||||||
if !empty(maparg('j', 'n'))
|
if !empty(maparg('j', 'n'))
|
||||||
nnoremap <buffer> j j
|
execute 'nnoremap <buffer>'. s:nowait 'j j'
|
||||||
endif
|
endif
|
||||||
if !empty(maparg('k', 'n'))
|
if !empty(maparg('k', 'n'))
|
||||||
nnoremap <buffer> k k
|
execute 'nnoremap <buffer>'. s:nowait 'k k'
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue