From f0705b3a4f4093ec1e0743fc434b78bc538ddef8 Mon Sep 17 00:00:00 2001 From: Bez Hermoso Date: Wed, 28 Nov 2018 15:02:35 -0800 Subject: [PATCH] Vim: Add section on spell-checking (#864) --- vim.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/vim.md b/vim.md index 2ca048e00..ba786dcdc 100644 --- a/vim.md +++ b/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`