vim:keys: Correct the next/last misspelled word

This commit is contained in:
2022-03-29 16:45:14 +02:00
parent 5df9e4d6ee
commit 4c7b054336

View File

@@ -42,6 +42,12 @@ noremap! <C-H> <C-W>
" Correct word with best/first suggestion. " Correct word with best/first suggestion.
noremap <leader>c 1z= noremap <leader>c 1z=
" Correct next or last misspelled word (and their non-rare/region versions)
" without moving
noremap <leader>]s ]s1z=<C-O>
noremap <leader>[s [s1z=<C-O>
noremap <leader>]S ]S1z=<C-O>
noremap <leader>[S [S1z=<C-O>
" Toggle spell, cycle and set spelllang " Toggle spell, cycle and set spelllang
map <leader>st :set spell=!&spell<CR> map <leader>st :set spell=!&spell<CR>