mirror of
https://github.com/preservim/vim-litecorrect.git
synced 2025-11-11 11:23:48 -05:00
Update README.markdown
This commit is contained in:
@@ -64,15 +64,19 @@ there’s a conflict, your correction will prevail.
|
|||||||
|
|
||||||
### Correct previous misspelling
|
### Correct previous misspelling
|
||||||
|
|
||||||
A handy command to force the top correction on the first misspelled word before
|
To augment _litecorrect_ you may find the following command useful.
|
||||||
the cursor. Add to your `.vimrc` with a key mapping of your choice:
|
It forces the top-ranked correction on the first misspelled word
|
||||||
|
before the cursor.
|
||||||
|
|
||||||
|
Add to your `.vimrc` with a key mapping of your choice:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
nnoremap <C-s> [s1z=<c-o>
|
nnoremap <C-s> [s1z=<c-o>
|
||||||
inoremap <C-s> <c-g>u<Esc>[s1z=`]A<c-g>u
|
inoremap <C-s> <c-g>u<Esc>[s1z=`]A<c-g>u
|
||||||
```
|
```
|
||||||
|
|
||||||
This will preserve undo points.
|
It generates a fresh undo point prior to the correction so
|
||||||
|
that you can conveniently undo if necessary.
|
||||||
|
|
||||||
Note that _litecorrect_ does not map any keys.
|
Note that _litecorrect_ does not map any keys.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user