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
2
votes
2answers
452 views

Using `TabEnter` and `FileType` in the same `autocmd`

I would like to set set spell whenever I open a tex file. My first attempt is autocmd FileType tex setlocal spell I am using setlocal here because I may open other files in new tabs after opening a ...
13
votes
2answers
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 ...
13
votes
2answers
1k 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?
20
votes
2answers
6k 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 ...
17
votes
2answers
10k 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 ...
7
votes
2answers
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. ...
3
votes
2answers
3k 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 ...
9
votes
2answers
335 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 ...
6
votes
1answer
337 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 ...
5
votes
1answer
88 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 \...
5
votes
1answer
380 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?
4
votes
1answer
446 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 ...
2
votes
1answer
430 views

Motion key for next highlighted item?

Using the normal spell-check mechanism in vim one can jump from one misspelling to the next using ]s. Sadly vim's spell-check is completely useless for Turkish. Using the vimchant plugin that hooks ...
1
vote
1answer
408 views

Does anyone know how to highlight spelling errors?

While using gVim on my Windows 10 machine at work, I discovered and started using the amazing spell checker when writing markdown. In gVim, misspelled words are underlined with the red squiggly ...