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
1answer
42 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, ...
0
votes
0answers
22 views

Spell Check Not Working Using Vimtex?

What is the correct way to have spell check for Latex files using the vimtex plugin? Spell check works for other filetypes but doesn't seem to work for .tex file extensions. I have read about using "...
0
votes
0answers
22 views

Remove costum commands from vim-spell

I recently tryed following the answer to this question: vim-spell: exclude custom LaTeX commands. To remove spelling from the inside of certain commands, I ended up adding the following to after/...
2
votes
1answer
32 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 ...
0
votes
1answer
28 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 ...
4
votes
2answers
77 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
37 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
57 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
35 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
47 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
58 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 ...
2
votes
1answer
49 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
63 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
117 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
67 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
40 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
219 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
164 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
46 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
85 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
69 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
326 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
286 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
21 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
102 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" ...
3
votes
1answer
110 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
76 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
222 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
607 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
43 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
55 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
190 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 ...
4
votes
1answer
535 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
143 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
82 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
218 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
156 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
46 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
109 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
3k 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 ...
2
votes
0answers
120 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
108 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
115 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
890 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
151 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
126 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
880 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 ...
5
votes
1answer
132 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 ...