Stack Exchange Network

Stack Exchange network consists of 175 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.

4
votes
2answers
58 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 ...
0
votes
2answers
35 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)...
1
vote
2answers
51 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 ...
1
vote
1answer
26 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 ...
3
votes
1answer
44 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 ...
0
votes
1answer
39 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 ...
3
votes
1answer
39 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?
1
vote
3answers
50 views

How to setup spelling for same words in different languages?

I use vim for prose and and code, and when it comes to prose I use spelling a lot to help me out. I have it set up and already, and I'm already working with z=, zg, zw, [s , and ]s to work with ...
2
votes
1answer
71 views

Neovim spellcheck: all the words highlighted as misspelled

I've been trying to set up spell checking in neovim. init.vim: setlocal spell spelllang=ru_ru First time it downloaded ru.utf-8.spl and ru.utf-8.sug, just as it probably should. Unfortunately, as ...
7
votes
1answer
62 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 ...
1
vote
0answers
36 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=@...
1
vote
1answer
165 views

vim cannot check markdown spell

I do not mean to let vim check my spell automatically, so please do not tell me to add a autocmd ... line in my vimrc. I created a .md file and put these contents in it: 8) good fftowndn Then I ...
0
votes
1answer
128 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 ...
3
votes
1answer
44 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
80 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
67 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 ...
2
votes
1answer
274 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
196 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 ...
1
vote
1answer
20 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
94 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
94 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
66 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
191 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 ...
6
votes
1answer
533 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
41 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
51 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
162 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
470 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
130 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
80 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
206 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 ...
3
votes
1answer
149 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
44 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
1answer
100 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: * ...
11
votes
1answer
2k 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
65 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
117 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
102 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
1k 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
112 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
837 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
148 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
122 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
811 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
129 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
338 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
83 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
170 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
268 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/...
12
votes
4answers
687 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. ...