How can I enable spell checking to be automatically enabled in the .vimrc file? Perhaps there's a way to define a quick shortcut that would toggle it instead.
Better yet, is possible to enable it for certain file extensions only?
Click File > Options > Proofing, clear the Check spelling as you type box, and click OK. To turn spell check back on, repeat the process and select the Check spelling as you type box. To check spelling manually, click Review > Spelling & Grammar. But do remember to run spell check.
By default, spell check will be off. If you want to turn it on, run setlocal spell in the Vim command line (if you want spell check to always be on, add set spell to your . vimrc). After turning spell check on, misspelled words will now be highlighted.
A software program or program feature designed to locate misspelled words and notify the user of the misspellings. Depending on the spell checker, the feature may either autocorrect the word or allow the user to select from potential corrections on the misspelled word.
For only certain file extensions, you can use the autocommands in Vim:
au BufRead *.txt setlocal spell
You should be able to just put set spell
in your .vimrc file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With