vim:keys: Open folds on remapped movement commands
See 'foldopen': > NOTE: When the command is part of a mapping this option is not used. > Add the |zv| command to the mapping to get the same effect.
This commit is contained in:
@@ -61,8 +61,8 @@ map <leader>sc <Cmd>call CycleSpellLang()<CR>
|
|||||||
map <leader>ss :set spelllang=
|
map <leader>ss :set spelllang=
|
||||||
|
|
||||||
" Jump through jump table but center
|
" Jump through jump table but center
|
||||||
noremap <Tab> <Tab>zz
|
noremap <Tab> <Tab>zvzz
|
||||||
noremap <C-O> <C-O>zz
|
noremap <C-O> <C-O>zvzz
|
||||||
nmap <S-Tab> <C-O>
|
nmap <S-Tab> <C-O>
|
||||||
|
|
||||||
" Terminal
|
" Terminal
|
||||||
@@ -276,11 +276,11 @@ vnoremap = =gv
|
|||||||
|
|
||||||
" Center search results
|
" Center search results
|
||||||
" TODO: this hides the search result indicator (i.e. [5/10])
|
" TODO: this hides the search result indicator (i.e. [5/10])
|
||||||
noremap n nzz
|
noremap n nzvzz
|
||||||
noremap N Nzz
|
noremap N Nzvzz
|
||||||
cnoremap <expr> <CR> "<CR>" .
|
cnoremap <expr> <CR> "<CR>" .
|
||||||
\ (getcmdtype() == '/' \|\| getcmdtype() == '?'
|
\ (getcmdtype() == '/' \|\| getcmdtype() == '?'
|
||||||
\ ? "zz"
|
\ ? "zvzz"
|
||||||
\ : "")
|
\ : "")
|
||||||
|
|
||||||
" Switch to lower/upper case
|
" Switch to lower/upper case
|
||||||
|
|||||||
Reference in New Issue
Block a user