Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
1 answer
92 views

How to use syntax rules to disable spell checking certain regions?

Vim has a built in capability to spell check files (see :help spell). This spell checking is syntax aware (see :help syn-spell). Unfortunately, I have no experience writing syntax rules for ...
2 votes
2 answers
70 views

Questions about spelling

I'm playing around with spelling in vim. I've discovered that adding i/=! in add spell file marks lowercase 'i' as misspelling though not apparently documented. Also that the following placed in order ...
2 votes
2 answers
114 views

How do I make Vim do spell-check only in words that beings with [a-zA-Z] and continues on with [a-z]?

Suppose I am writing in a markdown file, and I am using odd naming conventions like 'thisFileNameIsGood'. Spell checker will also mark it as wrong along with the names that the spell checker doesn't ...
3 votes
1 answer
116 views

Do not red underline unicode control points as misspelled words

Vim highlights Unicode control points as misspelled words. So correctly spelled words with Unicode strikethrough (overline, ...) always appear misspelled. Ideally this would be corrected as a setting ...
1 vote
0 answers
17 views

Highlight all words that appear in particular spellfiles, differently

I have a document with several custom words. To spell check these, I have sorted words into multiple word lists written in the "straight word list" format (detailed at spell-wordlist-format ...
3 votes
0 answers
579 views

How to disable spell check for a single line (with a custom tag)

Sometimes I do not want to add words to a spellfile, but still ignore them this once. This is particularly prevalent when I write markdown. It would be nice if I could tag a line with <!-- nospell -...
6 votes
0 answers
74 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 ...
0 votes
0 answers
256 views

Spell check highlighting in gruvbox disappears on scroll

When I open vim initially misspelled words are highlighted but as soon as I scroll they become unhighlighted. I have gruvbox color scheme. My vimrc looks like this """"""...
6 votes
1 answer
234 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 \...
3 votes
1 answer
462 views

How would one change the spell-checking style while preserving highlight color?

Currently when working with vim's spellcheck a word is highlighted a certain color based on the type of error it is. Instead of highlighting the erroneous word I'd like it to be underlined with the ...
1 vote
1 answer
271 views

undercurl not visible to me in gvim on WIndows 10

I like to use undercurl to highlight spelling mistakes in Vim. I believe it does this by default. This works fine in MacOS and Linux but it isn't visible for gvim on Windows 10. Originally, I ...
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 ...
2 votes
2 answers
223 views

`.vimrc` unsuccessful in setting highlight style

1) To underline misspelled words, I can execute the following in an open buffer: :hi clear SpellBad :hi SpellBad cterm=underline :set spell 2) However, if I write in my .vimrc the first two lines, ...
1 vote
0 answers
155 views

Ignore acronyms as spelling errors in TeX files

My LaTeX files contain lots of acronyms and they are often highlighted as spelling errors. I tried to ignore acronyms by adding syn match AcronymNoSpell '\<\(\u\|\d\)\{3,}s\?\>' contains=@...
8 votes
0 answers
129 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, ...
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. ...
2 votes
0 answers
56 views

LaTeX tabu package breaks Vim spell and syntax highlighting

The first line of this section of LaTeX code breaks syntax highlighting and spell check whenever I scroll to the area of the document that contains it: \begin{tabu} {*3{X[l$]}} col1 & col2 ...
2 votes
1 answer
3k views

Change spellcheck language via syntax

I have book length prose content in Markdown files that is mostly in Turkish. I've done a lot of work to get Turkish spell checking working decently in vim, so :set spelllang=tr spell works well ...