File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
10
10
11
11
For a steady stream of TILs, [ sign up for my newsletter] ( https://tinyletter.com/jbranchaud ) .
12
12
13
- _ 1064 TILs and counting..._
13
+ _ 1065 TILs and counting..._
14
14
15
15
---
16
16
@@ -1171,6 +1171,7 @@ _1064 TILs and counting..._
1171
1171
- [ Quick File Info] ( vim/quick-file-info.md )
1172
1172
- [ Quick Man Pages] ( vim/quick-man-pages.md )
1173
1173
- [ Quick Quickfix List Navigation] ( vim/quick-quickfix-list-navigation.md )
1174
+ - [ Quickly Fix A Misspelled Word] ( vim/quickly-fix-a-misspelled-word.md )
1174
1175
- [ Quickly Switch To A Buffer By Number] ( vim/quickly-switch-to-a-buffer-by-number.md )
1175
1176
- [ Quit When There Is An Argument List] ( vim/quit-when-there-is-an-argument-list.md )
1176
1177
- [ Re-indenting Your Code] ( vim/reindenting-your-code.md )
Original file line number Diff line number Diff line change
1
+ # Quickly Fix A Misspelled Word
2
+
3
+ In [ Fix The Spelling Of A Word] ( fix-the-spelling-of-a-word.md ) , I describe how
4
+ to use Vim's built-in spell files to fix a misspelling. After turning on
5
+ ` :spell ` and navigating the cursor to a typo, you can open a prompt with dozens
6
+ of spelling replacement options.
7
+
8
+ You generally don't need dozens of options to choose from. If you were remotely
9
+ close in the spelling of the word, you will likely end up choosing the first
10
+ option.
11
+
12
+ Instead of the multi-step open and choose, you can tell Vim to replace the
13
+ misspelled word with its top suggestion.
14
+
15
+ Navigate the cursor over the misspelled word and hit:
16
+
17
+ ```
18
+ 1z=
19
+ ```
20
+
21
+ This skips the prompt and tells Vim to grab the first spelling suggestion.
22
+
23
+ If it's not what you were looking for, you can always hit ` u ` (to undo) and
24
+ then ` z= ` to open the full prompt.
25
+
26
+ See ` :h z= ` for more details.
You can’t perform that action at this time.
0 commit comments