I have enabled spelling in vim for .txt files, but would like to have set nospell when viewing helpfiles because my standard language setting is german, so most helptext is marked as misspelled. I have to issue .set nospell whenever I consult help. Any ideas?
Share
You could create vim
autocmd‘s using the documentation directory as part of the file pattern. For example:The first entry should turn off spell check when entering the buffer of a helpfile. The second should turn it back on when you leave the buffer.
For more help with auto-commands checkout
:h autocmd.