Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
0 votes
0 answers
23 views

Neovim diffrent behaviour than vim on spelling sugestion

First thing first I am writing a foreign language with a different keyboard(greek-english). I was trying some spell checking features of vim and neovim and I noticed that neovim might have a bug. At ...
user avatar
3 votes
1 answer
58 views

How to get Vim spell checker to ignore the first word capitalization?

For aesthetic reasons, if I don't use capitilization then how do I tell Vim's spell checker to ignore these mistakes? Currently I see a blue line under these mistakes. For example: i like to paint. ...
user avatar
6 votes
1 answer
647 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 ...
user avatar
0 votes
0 answers
27 views

How to make spell ignore all Comment groups?

I am using gruvbox color theme which wasn't showing spell mistakes in terminal so I had to overwrite SpellBad. My method of doing this is this: function! MyHighlights() abort hi SpellBad term=NONE ...
user avatar
1 vote
1 answer
154 views

Setting font color and underline of `highlight SpellBad`

I want hi SpellBad to be red (167 or #fb4934) and underlined. What I have right now is this: ...in vimrc... setlocal spell set spelllang=en_gb inoremap <C-l> <c-g>u<Esc>[s1z=`]a<...
user avatar
0 votes
0 answers
64 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 """"""...
user avatar
0 votes
1 answer
67 views

vim spell checking

I am using vim and latex to produce documents and I have realized that I am making a number of spelling mistakes and in order to correct that I installed vim-lexical plugin. However, nothing seems to ...
user avatar
  • 143
0 votes
0 answers
54 views

Ignore spell check for LaTeX commands with multiple arguments

I have read through a lot of the posts on spell checking LaTeX syntax - here, here, and here. I am sure the problem is my lack of regex understanding, but I am having trouble configuring it so that ...
user avatar
  • 101
0 votes
1 answer
95 views

How to make vim show suggest current word in spellchecking suggestiong if current word is correct?

I often write code, and sometimes I check comments with z= when I am not sure of a spelling of some word. Vim then presents a list of suggestions. However, when I got the spelling right and the word ...
user avatar
  • 173
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 ...
user avatar
  • 567
1 vote
1 answer
63 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 (...
user avatar
0 votes
1 answer
76 views

vim/vim-latex: spell-check highlighting breaks after occurrences of \end{center}, \end{enumerate}, \end{itemize}

The highlighting of misspelled words in my LaTeX documents breaks, when I open a .tex file and jump to the bottom instead of scrolling through the whole document. Only .tex files seem to be affected, ...
user avatar
  • 1
1 vote
0 answers
15 views

Add global spell ignore words

I'm editing a wiki and it uses atleast two languages. Vim has no problem, as it allows multiple languages in spellcheck. Problem is, some wiki templates, and html-like mediawiki tags are often words ...
user avatar
0 votes
0 answers
15 views

Characters in spellcheck words

I write a lot of documents in LaTeX. Often, I like to add people's names to my spell check dictionary in order to simplify the spellcheck. However, sometimes the names I want to add include accents or ...
user avatar
  • 1
5 votes
1 answer
126 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 \...
user avatar
1 vote
1 answer
143 views

How can I compile all spell .add files?

I have two spelling addition files: ~/.vim/spell/en.utf-8.add ~/.vim/bundle/work/spell/en.utf-8.add ~/.vim/bundle/work is in my 'runtimepath'. I can run this script to build .spl files for both .add ...
user avatar
  • 485
4 votes
1 answer
297 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 ...
user avatar
  • 801
0 votes
3 answers
113 views

Vim's spell check: Ignore abbreviations in acro package commands?

The acro package introduces LaTeX macros like \ac{abc}, \acs{abc}, \acl{abc}, \acp{abc}, \acpl{abc}, \Ac{abc}, etc. Here, abc is the label for an acronym. I manually extract the acronym labels from ...
user avatar
  • 383
0 votes
0 answers
238 views

Vim spellcheck does not highlight/select misspelt text which is emphasized or strongly emphasized in Markdown

I have noticed that vim spellcheck does not highlight/select text which is emphasized (i.e., italicized) or strongly emphasized (i.e., bold) in markdown. For example, The wuick brown fox jumps over ...
user avatar
  • 1
3 votes
0 answers
118 views

How to disable spell check inside code blocks in markdown?

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 ...
user avatar
0 votes
0 answers
34 views

How to exclude git commit hash (7-char long hex string) from spelling?

I use neovim as editor for git. Especially when rebasing it is hard to focus on the important things because the spell check highlights the commit hashes. Therefore I'm trying to exclude the 7-char ...
user avatar
  • 119
1 vote
1 answer
299 views

Vim doesn't flag "int" as a spelling mistake

I have a file en.utf-8.add in the folder of a file being edited by Vim. I issue :mkspell! en.utf-8.add to create a new en.utf-8.add.spl. In the edited document, the word int is not flagged as a ...
user avatar
  • 383
1 vote
1 answer
2k views

Vim Spellcheck Not Working

I'm trying to use spell but for some reason it doesn't work. Here's what I've tried: :setlocal spell spelllang=en_us. :set spell spelllang=en_us. Using a simple text file instead of the .md file I ...
user avatar
  • 121
1 vote
1 answer
115 views

How to set spellfile with spaces

I am trying to give vim a global spellfile and a project-specific spellfile. The project-specific file is ./en.utf-8.add relative to the cwd. This works fine if the project directory has no spaces, ...
user avatar
  • 123
0 votes
0 answers
80 views

How to create a new Vim 8.0 spelling dictionary?

I'm using Vim 8.0 along with it's excellent spelling feature to check text documents for errors. I need create a custom spelling dictionary by copying the en_us dictionary and modifying it. The ...
user avatar
  • 337
2 votes
1 answer
23 views

Vim autocorrection problem

I am having a problem with vim autocorrection. I got this line from a website, which is: inoremap <C-l> <Esc>[s1z=`]a The problem is that whenever I press Ctrl+l to correct something, it ...
user avatar
  • 119
2 votes
0 answers
33 views

How to disable American spellchecking in vim, and switch purely to British?

I tried :set spell spelllang=en_gb in my vim, but I noticed that summarization is not highlighted as incorrect. Shouldn't it be wrong? How to fix this problem?
user avatar
  • 21
3 votes
1 answer
413 views

Setting vim spelllang for Italian

I need to enable the spelllang of vim for Italian as well, but I can't understand how to tell vim to check for Italian words as well. This is what I have in my init.vim, if it can help you: I tried ...
user avatar
  • 119
2 votes
1 answer
437 views

Shortcut for spell checking

I would like to create a shortcut for the spell checker, since it requires a relatively long command. I inserted the following map in the .vimrc file: inoremap <F5> <C-O>:set spell ...
user avatar
1 vote
1 answer
34 views

Move between non-capitalised (SpellCap) spelling mistakes

After running set spell is see spelling mistakes as well as non-capitalised words. I can move between mistakes with [s or ]s, but is there a way to move between non-capitalised words? Motivation is to ...
user avatar
1 vote
1 answer
158 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 ...
user avatar
1 vote
1 answer
540 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 ...
user avatar
1 vote
0 answers
48 views

XML syntax folding and custom tag spell checking

I have the following in my ~/vim/syntax/xrc.vim to spell check contents of specific tags when editing XRC files that are just XML files with predefined schema: runtime syntax/xml.vim " check ...
user avatar
  • 111
1 vote
1 answer
46 views

Remember spelling settings in session file

I enabled spell checking in a buffer with set spell spelllang=en which works. If I save the session with mksession! and later source it back with vim -S Session.vim, spellchecking is no longer enabled....
user avatar
  • 353
11 votes
1 answer
1k 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?
user avatar
0 votes
0 answers
70 views

Vulgarities in the vim Default Dictionary

I use Vim to write LaTeX, in particular professional, academic papers. I rely on the default vim dictionary (in /usr/local/share/vim/vim81/spell/en.utf-8.spl). I recently noticed a vulgarity (...
user avatar
  • 151
3 votes
1 answer
113 views

How can I add a definition with several words to the spell checker?

I'm writing a paper on logic where I mention the rule modus ponens often. Neither modus nor ponens are words in English, and the ideal spell checker should mark them as incorrect. However, modus ...
user avatar
2 votes
1 answer
256 views

Can the vim spell checker be used non-interactively?

Background I want to spell check latex documents which were mostly generated by software (R). Some contain a modeline specifying spelllang. At the moment I'm manually checking them, but replacing in ...
user avatar
  • 259
2 votes
1 answer
209 views

How to make spell check work for text inside a XML file?

Editing a Qt localization file, which actually is a XML. I'd like to check spelling for a text inside tags, so executed a command setlocal spell spelllang=fr After that only attribute value become ...
user avatar
  • 123
1 vote
2 answers
90 views

Where do I fix partial words incorrectly identified as errors with spell?

I upgraded MacVim to 8.1.2168 (159) tonight and now the vimwiki files in Markdown format do not highlight correctly when I enable spell check. I run set spell spelllang=en_ca as I have before. It ...
user avatar
0 votes
1 answer
371 views

Enable spelling in code files outside of comments

I've got the following obviously misspelled file: bla blar blar When I open it as "bla.txt" and run :setlocal spell vim rightly points out all three words as misspellings. However, if I mv the file ...
user avatar
2 votes
2 answers
154 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, ...
user avatar
  • 69
2 votes
1 answer
161 views

How can I disable spellcapcheck for the first line of a FileType?

I've added the following to my ~/.vimrc: autocmd FileType gitcommit setlocal spell This is great, as when I'm editing a got commit message, I now have spell enabled. However, our commit style ...
user avatar
0 votes
1 answer
141 views

Vim does not spellcheck the content of <title> element in my DocBook files

I have initiated online spell checking in .vimrc with autocmd FileType docbk set spell spelllang=en autocmd FileType docbk highlight SpellBad cterm=underline ctermfg=red ctermbg=none in my plugin's ...
user avatar
6 votes
2 answers
1k 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 ...
user avatar
0 votes
2 answers
72 views

Can I pipe vim spelling suggestions to an external program?

I know I can write a buffer to an external program with :w !<command>, but is there a way to pipe the contents of the spelling correction list I get with z= into an external program (i.e. dmenu)...
user avatar
1 vote
2 answers
95 views

Can I record a macro that accepts the first spelling suggestion?

I'm trying to bulk correct some OCR formatting issues. I tried recording a macro that would: ]s (advance to the next spelling error) z= (view the suggested corrections) 1 (choose the first suggested ...
user avatar
  • 113
3 votes
1 answer
195 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 ...
user avatar
3 votes
1 answer
133 views

How to make vim spell error search the current line only?

This vim binding will make <C-l> correct the previous spelling mistake: inoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u How do I modify it to make it correct the previous ...
user avatar
  • 153
1 vote
1 answer
246 views

Cannot remove spelling error highlight from lowercase "vim"

The word "vim" is flagged as a spelling error in my documents. If I capitalize it, the error goes away. I don't want to capitalize "vim". Adding it to dictionary with zG or zg does not help. UPDATE ...
user avatar
  • 1,237