Correct previous misspelling

4 Points

Reed Esau Reed Esau

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

Florian Beer

Florian Beer 9 years ago

Very practical! I can see myself using this a lot for late night commit messages.