Skip to main content

Questions tagged [spell-checking]

A feature that identifies and highlights misspelled words, and lets you choose among possible correct replacements.

Filter by
Sorted by
Tagged with
25 votes
1 answer
7k views

Remove word from dictionary

I'm using gvim: $ gvim --version VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Feb 16 2017 06:36:51) MacOS X (unix) version Included patches: 1-329 Compiled by Homebrew I was editing the following ...
mbigras's user avatar
  • 647
22 votes
2 answers
7k views

Autocorrect spelling mistakes

I've turned on spellcheck with :set spell spelllang=en_us I can now correct the spelling of a word by typing 1z= (that is, choose the 1st spelling correction (z=)). How can I make this ...
Doorknob's user avatar
  • 15.4k
20 votes
1 answer
2k views

How can I undo `zg`?

I'm checking spelling in a document. I find a misspelled word and intend to press z= to get suggestions, but I accidentally press zg, marking this as a "good" spelling. How can I undo that?
Nathan Long's user avatar
20 votes
2 answers
14k views

How can I make vim download spell files?

When setting spelllang for the first time, I was prompted to auto-download the appropriate spell file. Somehow I aborted the process due to unclear instructions, when it asked me, into which directory ...
oarfish's user avatar
  • 1,287
18 votes
2 answers
4k views

Vim cannot find medical spell files

Problem specification I would love to have a medical spell dictionary in vim. Currently, I have a lot of medical terms in my own personal English dictionary right now. However, using an official ...
melvio's user avatar
  • 617
18 votes
1 answer
9k views

How to enable spell check for certain file types?

I flip between Ruby and Markdown files a lot. Is there a way that I can have set spell automatically set when I open a *.md file, but not when I open a *.rb one?
Sauce McBoss's user avatar
17 votes
3 answers
2k views

Ignore URLs and email addresses in spell file

Is there a way to have vim not flag HTTP URLs and email addresses as spelling errors? Or, more generally, a way to list regexes of valid spellings?
noffle's user avatar
  • 273
17 votes
1 answer
720 views

How can I have Vim sound the terminal bell when I misspell a word?

I do a fair amount of transcription in which I type at 100+ wpm without looking at the screen. I think it would be useful if Vim could give me some sort of audible cue if the spell-checker has just ...
Soren Bjornstad's user avatar
16 votes
2 answers
1k views

How can I use Vim's spellcheck with ‘smart quotes’?

There are the "normal" straight quotes: ' " And you have the angled "smart quotes": ‘ ’ “ ” Vim's spellcheck works with "straight" quotes, but not angeled quotes, so this is considered "wrong": It’s ...
Martin Tournoij's user avatar
14 votes
3 answers
2k views

How to share Vim spellchecking additions between multiple machines?

I use Vim's spellchecking feature. Given that I work with many technical terms and LaTeX commands, I tend to add many them to my personal dictionary in ~/.vim/spell/en.utf-8.add. I would like to share ...
a3nm's user avatar
  • 435
14 votes
3 answers
523 views

How can I make the spellcheck selection window allow me to type my own correction?

When doing spell checking, keying z=, brings up a selection list, as shown bellow. As you can see the correct spelling; "i.e." is not shown as any of the options. I would like to enhance this menu, ...
Frames Catherine White's user avatar
13 votes
1 answer
3k views

Spell mistakes have weird coloring

I am using spell checker in vim, and I find one feature very annoying: errors are being highlighted with some weird color, which is nowhere to be found in gnome terminal settings: I would like to ...
jligeza's user avatar
  • 537
12 votes
3 answers
2k views

How to configure spell to ignore some environments in LaTeX

Is there a way to tell vim not to spell-check part of a latex document? For instance, code block using the minted environment or URLs in \url{}? (I'm not sure it's relevant for spell checking but I'm ...
Grégoire's user avatar
  • 225
12 votes
4 answers
2k views

Command to loop through spelling suggestions

I mapped zz to 1z=, which is great most of the time, but every now and then the first suggestion isn't the right one. So I'd like to keep repeating zz (or .) to cycle through the other suggestions. ...
dbmrq's user avatar
  • 857
9 votes
1 answer
2k views

What is the difference between red and cyan in spell check highlighting?

My Problem I have added the following to my .vimrc to enable spell checks: " Spell Checking set spelllang=en_us set spellfile=$HOME/en.utf-8.add set spell Giving the following highlight: Both "...
Adam Matan's user avatar
9 votes
1 answer
332 views

Ignore capital letter rule when word is preceded by a shortcut

I want to use the spelling rule: begin first word in a sentence with capital letter, but Vim faultily recognises the end of a sentence when I use shortcuts that end with a dot. The problem exists ...
nuoritoveri's user avatar
9 votes
2 answers
405 views

How can I check spelling in HTML attributes?

Vim spell check feature works great in most cases - it is even smart enough to distinguish code from literals and comments in most languages. However I have problems with HTML spell check: <div ...
Jarlax's user avatar
  • 478
8 votes
2 answers
2k views

How can I tell vim to ignore spelling errors inside quotes?

If I'm editing a text file with :set spell, is there any way to have vim not check words within the boundaries of certain characters against the word list? I want to be able to write things like ...
myc3lium's user avatar
  • 101
8 votes
1 answer
569 views

How do I mark a word as rare?

Vim has the commands zg and zw to mark a word as good (correctly spelled) or bad (incorrectly spelled), respectively. Is there a similar command to mark a word as rarely-used? (It’s possible to ...
bdesham's user avatar
  • 2,983
8 votes
2 answers
2k views

Can I make Vim's spell check not syntax-aware, and check everything?

The Vim spell checker is code-aware; it uses the syntax file to disable spell checking for the parts where it usually doesn't make any sense. However, on occasion I do want to spell-check this. ...
Martin Tournoij's user avatar
8 votes
0 answers
126 views

Count only words for which Spell is enabled?

I want to count the words in my buffers, but for TeX files, for instance, a lot of words (e.g., commands) shouldn't be counted. I'm aware that there are scripts that do this specifically for LaTeX, ...
dbmrq's user avatar
  • 857
7 votes
1 answer
2k views

Change color of misspelled words in vim-lexical

How can I change the color that is used to highlight misspelled words in vim-lexical?
Jonas's user avatar
  • 243
7 votes
2 answers
855 views

Deactivate SpellCap-Check after Abbreviation [duplicate]

Vim highlight SpellCap errors after every fullstop. Also after abbreviations: i.e. without Here without gets the SpellCap highlight. This is obious no error, and renders the SpellCap function rather ...
B.G.'s user avatar
  • 1,156
7 votes
1 answer
810 views

Converting .spl spell files

VIM spell files seem to be in some binary format. Is it possible (and easy) to convert one back to a plain text word list?
Toothrot's user avatar
  • 3,139
7 votes
1 answer
2k views

Warning when opening commit message with Neovim

I've been using Neovim for a few days with no problem, so I decided to switch my git config to use Neovim instead of vim. Here's what I put in my global .gitconfig: [core] editor = nvim And here'...
aharris88's user avatar
  • 1,857
7 votes
1 answer
543 views

How do I allow sentences to begin with lowercase letters?

My spellchecker wants me to begin every sentence with a capital letter, i.e., it underlines lowercase characters after full stop. Can I make it stop?
Toothrot's user avatar
  • 3,139
7 votes
1 answer
502 views

Turn off Vim spellcheck in custom region

I have the following definitions in a .tex file preamble: \newcommand{\beq}{\begin{eqnarray}} \newcommand{\eeq}{\end{eqnarray}} If I then use \beq and \eeq to define an equation array region, spell ...
Ben Lindsay's user avatar
7 votes
1 answer
289 views

Adding words to one of many spellfiles

Say I am mixing English and German in my documents and have my spelllang variable set accordingly. How do I indicate, when I want to mark a word as good, to which spellfile it is to be added?
Toothrot's user avatar
  • 3,139
7 votes
1 answer
544 views

Make zG and zW persistent

Edit: I turned this into a little plugin. This is my first attempt at writing one and I have no idea what I'm doing, so any help is much appreciated. :) Here it is: https://github.com/danielbmarques/...
dbmrq's user avatar
  • 857
7 votes
1 answer
636 views

How can I spell check an entire buffer?

Is there a built-in command or plugin available to trigger spell checking over the entire current buffer, prompting me for each word it detects to either ignore, add to dictionary, or correct spelling?...
Mu Mind's user avatar
  • 485
7 votes
1 answer
820 views

How to disable spell check inside code blocks in markdown? [closed]

Code blocks (fenced with ` or ```) are bound to have words not correctly spelled and spell check warnings often get in the way of syntax highlighting. I still want spell check enabled for the rest of ...
ChocolateOverflow's user avatar
6 votes
2 answers
5k views

How to set a colorscheme that still shows spelling errors?

How to set a colorscheme that still shows spelling errors? I am looking for two combined effects that I can acquire separately but not yet together. Set Colorscheme alone: OK. If I want highlights ...
nilon's user avatar
  • 217
6 votes
1 answer
1k views

vim shortcut for ignore spell-checked word

In Gvim there is an option upon rightclicking a highlighted word to ignore all such words. What is the shortcut for that?
atapaka's user avatar
  • 163
6 votes
1 answer
631 views

Correct all spelling mistakes in the document

I've turned on spellcheck with :set spell spelllang=en_us. Now there's a bunch of words highlighted in red, and I just want to correct them all to their closest matches. How can I correct all ...
Doorknob's user avatar
  • 15.4k
6 votes
1 answer
892 views

How can I make Vim not use the entire screen for spelling suggestions?

If I type z= on a spelling suggestion it uses the entire screen. Is there any way to disable that?
Martin Tournoij's user avatar
6 votes
1 answer
208 views

Spell-check blacklisting word sequences

I am a programmer and use Vim primarily for that, but I have found that enabling Vim's spell check is a somewhat useful feature to have just to help slightly incentivize cleaning up the parts of files ...
Steven Lu's user avatar
  • 2,281
6 votes
1 answer
666 views

Why does "thge" correct to "Chge" using spellcheck?

I was showing a friend the spell-check feature in Vim which I add activated by adding the lines setlocal spell and set spelllang=en_gb to my .vimrc. He did the same on his end and tried a few spell ...
Isky Mathews's user avatar
6 votes
1 answer
229 views

Disable spell checking for URLs in BibTeX

I would like to disable spell checking for the URLs in my BibTeX (.bib) files. I was able to disable spell checking for the citation keys (author-year or author+year) as follows: autocmd FileType bib \...
Rudolf Adamkovic's user avatar
6 votes
1 answer
490 views

How do I spellcheck TeX files using vim-lexical, skipping some command arguments but not others?

I use the vimtex plugin for TeX editing and vim-lexical for spell-checking. This works generally fine, but there are several commands vim-lexical tries to spellcheck. For example, in \includepdf{...
Jonas's user avatar
  • 243
6 votes
0 answers
72 views

Spellcheck only a part of a word

(There might be an XY problem in the title, I let you judge.) The default dictionary for French sets the (ASCII) hyphen - to be a word character, which is the right thing to do. The issue is that ...
Maëlan's user avatar
  • 263
5 votes
1 answer
1k views

How can I use multiple spell files at the same time?

Based upon documentation there is explicitly a way to have multiple spell file for "spell" but I cannot, for the life of me, figure out how to use more than one spell file at the same time. Under my ...
The Pompitous of Love's user avatar
5 votes
1 answer
1k views

Disabling spellchecker highlight

When activating the spellchecker (with :set spell spelllang=en_us for example), all incorrect words are highlighted. I'd prefer if they'd not be highlighted, but the spell checker to continue to work (...
Luiz Martins's user avatar
5 votes
1 answer
596 views

Is it possible to turn on spell-checking for only parts of buffers?

It seems that spell-checking in vim is normally enabled at a buffer level (set spell vs. set nospell). However, sometimes it would be useful to ignore certain parts of a buffer (for example, URLs in ...
Andrew Ferrier's user avatar
5 votes
1 answer
378 views

Generate new spell file from .aff & .dic

Im trying to generate a new spell lang file for Romanian, but using format before 1993 when new orthographic rules was implemented. To summarize before 1993 we wrote for eg: cînd and now we write ...
Mafsi's user avatar
  • 225
5 votes
1 answer
259 views

Alert for repeated word in spell checking

According to :h spell Vim only checks words for spelling, there is no grammar check. It does however alert with a green wobbly line if a sentence begins with a small letter. Is there a way to have ...
Andreas's user avatar
  • 367
5 votes
1 answer
490 views

Can the spell checker be told to stop marking words with apostrophes as bad?

With the ascii apostrophe ', the spell checker defaults to treating words with a genetive s as bad; can that be remedied?
Toothrot's user avatar
  • 3,139
5 votes
1 answer
852 views

How do I make Vim ask to download spellfiles without manually typing ":set spelllang=..."?

I have this in my Vim configuration file: set spell set spelllang=fr When I start Vim, I get an error: Warning: Cannot find word list "fr.utf-8.spl" or "fr.ascii.spl" Press ENTER ...
Flux's user avatar
  • 1,061
5 votes
1 answer
3k views

Error: "Warning: Cannot find word list" - Is this a user or package error?

I'm a longtime user of vim on Archlinux. I've been away from this system for a few months, so I can't be sure when this started (but I've made updates during this time, too). Every time I open the ...
xtian's user avatar
  • 315