9 years ago
Handy key mapping to correct the previous misspelled word with the first suggested correction.
For use in both insert and normal modes.
Wraps the correction in an undo point, to back out of an undesired correction.
" correct previous misspelling nnoremap <C-s> [s1z=<c-o> inoremap <C-s> <c-g>u<Esc>[s1z=`]A<c-g>u