mirror of
https://github.com/preservim/vim-litecorrect.git
synced 2025-11-10 02:43:48 -05:00
Improve suggestion for correct most recent
This commit is contained in:
@@ -64,14 +64,17 @@ there’s a conflict, your correction will prevail.
|
|||||||
|
|
||||||
### Correct previous misspelling
|
### Correct previous misspelling
|
||||||
|
|
||||||
Via [Ingo Karkat on Stack Overflow][ik], a command to force the top
|
A handy command to force the top correction on the first misspelled word before
|
||||||
correction on the previous misspelling. Add to your `.vimrc`:
|
the cursor. Add to your `.vimrc` with a key mapping of your choice:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
inoremap <C-z> <Esc>[s1z=gi
|
nnoremap <C-s> [s1z=<c-o>
|
||||||
|
inoremap <C-s> <c-g>u<Esc>[s1z=`]A<c-g>u
|
||||||
```
|
```
|
||||||
|
|
||||||
[ik]: http://stackoverflow.com/a/14602013
|
This will preserve undo points.
|
||||||
|
|
||||||
|
Note that _litecorrect_ does not map any keys.
|
||||||
|
|
||||||
### Typographic characters
|
### Typographic characters
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user