Neovim Spell Checking for Multiple Languages#
Setup#
~/.config/nvim/init.vim
set spelllang=de_de,en_us
Enable#
To enable spelling globally, run
set spell
I opted for enabling spelling only for markdown files in LOG
directories by
adding the following to ~/.vim/after/syntax/markdown.vim
[1]:
if getcwd() =~# 'LOG' | set spell | endif
Cheatsheet#
keys |
description |
---|---|
|
Next misspelled word |
|
Previous misspelled word |
|
Add to good words |
|
Show suggestions, hit number, then Enter |
Use-Cases#
https
has a blue squiggly line, which means it’s not correctly capitalized.
Double check with :hi SpellCap
.
For now, I’ll disable “start line with uppercase” completely, even though it would be nice to have vim ignore certain words in this case, which is surely possible, but would take more time than I can invest right now. ;)
:set spellcapcheck=
Troubleshooting#
Warning: region DE not supported
#
If you run :spelldump
and got the warning above, then that’s because
spelllang=de_DE
is invalid. It should have been spelllang=de_de
from the
start.