Skip to content

Commit

Permalink
Vim: Add section on spell-checking (rstacruz#864)
Browse files Browse the repository at this point in the history
  • Loading branch information
bezhermoso authored and chadwithuhc committed Nov 28, 2018
1 parent bb00a53 commit f0705b3
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions vim.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit f0705b3

Please sign in to comment.