mirror of
https://github.com/onkelbeh/cheatsheets.git
synced 2025-10-15 23:18:52 +02:00
Vim: Add section on spell-checking (#864)
This commit is contained in:
parent
bb00a53532
commit
f0705b3a4f
17
vim.md
17
vim.md
@ -399,15 +399,18 @@ Do this in insert mode.
|
||||
|
||||
Works like `:qa`, but throws an error. Great for aborting Git commands.
|
||||
|
||||
|
||||
### Spell checking
|
||||
|
||||
| Shortcut | Description |
|
||||
| --- | --- |
|
||||
| `:set spell spelllang=en_us` | Turn on US English spell checking |
|
||||
| `]s` | Move to next misspelled word after the cursor |
|
||||
| `[s` | Move to previous misspelled word before the cursor |
|
||||
| `z=` | Suggest spellings for the word under/after the cursor |
|
||||
| `zg` | Add word to spell list |
|
||||
| Shortcut | Description |
|
||||
| --- | --- |
|
||||
| `:set spell spelllang=en_us` | Turn on US English spell checking |
|
||||
| `]s` | Move to next misspelled word after the cursor |
|
||||
| `[s` | Move to previous misspelled word before the cursor |
|
||||
| `z=` | Suggest spellings for the word under/after the cursor |
|
||||
| `zg` | Add word to spell list |
|
||||
| `zw` | Mark word as bad/mispelling |
|
||||
| `zu` / `C-X (Insert Mode)` | Suggest words for bad word under cursor from spellfile |
|
||||
{: .-shortcuts}
|
||||
|
||||
See `:help spell`
|
||||
|
Loading…
x
Reference in New Issue
Block a user