Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [spell-checking]

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

3
votes
1answer
29 views

How can I make Vim recognise ordinal numbers (1st, 2nd) as valid spellings?

If I set spell, Vim seems to only recognise some ordinal numbers: 1st, 2nd, etc. are fine, but anything from 10th to 20th is apparently misspelled. Then 21st, 22nd and 23rd are fine, but then they're ...
1
vote
1answer
30 views

Spellchecking multiple files with vim

I want to spellcheck a bunch of files with vim, so I run: for a in *.txt do vim -c 'set spell' $a done Now, in each file, I use ]s to find the next unknown word, and fix the typo or add it to my ...
1
vote
1answer
39 views

Netrw error: “Illegal PORT command”

I installed Vim 8.1.1 on Windows 10. My _vimrc in C:\Users\Maggyero has the following lines: set spell set spelllang=en,fr set spellsuggest=5 When I open Vim, I get the following message: Alerte ...
1
vote
1answer
97 views

How to force vim spellchecker to ignore lowercase/uppercase errors

I found here and here how to force Vim spell checker to ignore words with capital letters from being check. But my case is quite opposite. I want to ignore words that in corrected form include capital ...
0
votes
2answers
49 views

How to enable dictionary autocompletion without spell option set

I noticed, that in any source code file, regardless of the programming language, I can use the dictionary autocompletion (Ctrl + x Ctrl+k) if the spell option is set, if it's not, then the editor ...
0
votes
1answer
17 views

Spellllang dependent key mapping

Is it possible to define mappings that only get active when a certain spelllang is set? E.g. I want to set the following mapping, but only if I use spelllang=de. inoremap oe ö
1
vote
1answer
68 views

What's setting an ftplugin 'spell' back to 'nospell'?

I have these commands in my ~/.vim/ftplugin/markdown.vim: setlocal spell spelllang=en When I open a Markdown file, however, 'nospell' is in effect; output of :verbose set spell? shows the "last set" ...
4
votes
1answer
69 views

Figure out which dictionary is used when spell checking

At some point an update broke my vim's spell checking ability. This is always a good opportunity to review my .vimrc. I figured out that vim's spell checking abilities actually go far further then ...
2
votes
2answers
52 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 ...
0
votes
1answer
100 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 ...
3
votes
1answer
195 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 "...
3
votes
1answer
37 views

Why the spellcheck is not working properly for .exs files?

test "UD.1 should delete the given record" do [user, compnay ] = insert_record() asset = Asset |> last |> Repo.one {:ok, deleted} = Delete.delete(to_string(asset.id), user, company) ...
1
vote
1answer
41 views

Vim spell checking marks “the the” in red. Can I define my own rules like that?

If spell checking is on and I type "the the" two times in a row, it marks it as an error. This is described in the docs as Word Combinations. Can I make my own rules like this? How is this done? I ...
1
vote
1answer
87 views

Is there a way to have all misspelled words in a new buffer?

I write in German and English and my text sometimes deal specific topics. This lead me to use multiple spelling files for different kinds of texts. The advantage for example is when I write in German ...
3
votes
1answer
269 views

How does .sug files work, and can you generate them yourself?

I have noticed that along with most .spl files, there is also a .sug file. As far as I could gather from my search with :help, this is a file which helps Vim rank suggestions from the .spl file. I ...
1
vote
0answers
84 views

Make spell check recognize Swedish compound words

In Swedish, you make compound words by just adding words together right after each other without a space in between as in English. You can make almost any combination, e.g. "staff matters" is "...
2
votes
1answer
62 views

Exclude East Asian (CJK) characters from spell check

How can I make vim accept all CJK characters as correctly spelled while still having the spell check language set to English? If it's easier, a rule to only check the spelling of Latin characters ...
2
votes
2answers
143 views

Deactivate SpellCap-Check after Abbreviation

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

Why does termguicolor disable spell checking in vim latex?

When I set termguicolor it disables spell checking highlighting in Vim, and when I disable termiguicolor, highlighting starts to work again but I get ugly colors. How could I make them work properly? ...
3
votes
1answer
99 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 ...
2
votes
0answers
37 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 ...
1
vote
0answers
44 views

markdown spell checking with triple nested bullet point

I am confused about what is going on in this example and why spell checking is not working any help is appreciated. While editing a markdown file with spell checking enabled the following happens: * ...
7
votes
1answer
1k 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 ...
1
vote
2answers
60 views

Erratic spell checking

I was editing the resume in latex I had downloaded from here. Vim is most erratic when it comes to checking spelling. In the resume_cv.tex file, the spell checking works. When I open any of the ...
3
votes
0answers
101 views

Autocorrect spelling mistakes using Google?

I found an automation script written in AutoHotKey very inspiring. It relies on the search result from Google to correct the wrongly spelled words. The script: ; Ctrl+Alt+c autocorrect selected text ...
1
vote
1answer
87 views

I want to indicate in the status line whether or not `spell` is set

I am using vim-tinyline and it doesn't seem to have an option for this and I have no idea how to write a function to do this. Example function from tinyline that checks whether the file has been ...
1
vote
1answer
661 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 ...
1
vote
1answer
97 views

Words marked as 'rare' in .add file are not always highlighted as such

I'm trying to create a list of 'rare' words as a supplementary spellfile so I have created list.utf-8.add and used mkspell! to create list.utf-8.add.spl I included list.utf-8.add in my spellfile ...
1
vote
1answer
599 views

Vim ignoring ctermfg color value

I have the following in my .vimrc file: hi clear SpellBad hi SpellBad cterm=underline,bold ctermfg=196 ctermbg=NONE To make misspelled words red. Vim makes them only underlined and bold, but not ...
1
vote
0answers
127 views

Spell checking beginning of phrase capital letters

How can I change vim's spell checking, so that it does not mark words with capital letters, which were previously unknown to vim, but were added to a custom dictionary in lower case form, at the ...
1
vote
1answer
101 views

Change spell check word separator

I want to change the characters, spell checking considers to being separating words. I already have the following line in my ~/.vimrc file, which makes w and b recognize words with a - in between as ...
1
vote
1answer
621 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 ...
6
votes
1answer
98 views

Ignore word spelling on a per-file/buffer basis

I can add a word to the local dictionary or spellfile with zg. I can use zG to add a word to the internal spellfile, but this still affects all loaded files. How can I add spelling exceptions on a ...
0
votes
2answers
241 views

Vim pandoc red background

I use vim-pandoc for markdown editing but it adds red backgrounds to almost every words. Is it an spellchecking issue ? how can I disable this ? [
6
votes
0answers
77 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, ...
5
votes
0answers
150 views

Disable spell check for single character words

I haven't found a way to disable spell checking for single character "words", like when you type 100k (k as in thousand) and it gets highlighted as a mistake. I already tried this: syn match ...
8
votes
1answer
241 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/...
11
votes
4answers
520 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. ...
2
votes
0answers
313 views

Vim is taking a really long time to open spelling suggestions

I have recently reinstalled vim and I noticed that the Spell checking is working very slowly. Whenever I do a z= on an incorrectly spelled word, Vim takes a good 4-5 seconds to show the spelling ...
4
votes
1answer
106 views

Does vim support spell checking in the command line?

I suspect that it doesn't. I don't see anything about it in the documentation(:h spell), but I'd love to be proven wrong.
4
votes
1answer
126 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 ...
4
votes
1answer
359 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?
3
votes
1answer
469 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?
9
votes
1answer
2k 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?
5
votes
3answers
150 views

How to find the next SpellLocal

I am curious to know how I can find the next instance of a SpellLocal mistake (either by a motion key or via a search command) in vim.
4
votes
1answer
213 views

Is there a function that says whether a word is good or bad?

That is, one that would make :echo good('crazy') print '1'.
5
votes
1answer
153 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?
3
votes
1answer
38 views

Can I set German spell checking to ignore the case of nouns?

German nouns are normally spelt w/ a capital first letter, but can I make the spell checker stop caring about that?
6
votes
1answer
231 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{...
3
votes
1answer
39 views

Private spellings, adding and marking standard as bad in one operation

I enjoy spelling Latin and Greek loan words according to their original spelling, e.g. præcise and œconomy. Might there be a convenient way to add these to the spellfile (manually) and at the same ...