Reworked Spell Check Section

Removed the global nospell autocommands:
  The lines `autocmd BufRead,BufNewFile * setlocal nospell` and
  `autocmd BufRead,BufNewFile *.* setlocal nospell` have been removed.
  These were turning off spell checking for all files.
This commit is contained in:
2025-04-15 13:05:56 -04:00
parent d2821c7df6
commit aaf5d31567

9
.vimrc
View File

@@ -309,18 +309,15 @@ nnoremap <F10> :setlocal spell! spelllang=en_us<CR>
" ==> Spellcheck: only certain file types
" https://robots.thoughtbot.com/vim-spell-checking
" turn off for files with no extension
autocmd BufRead,BufNewFile * setlocal nospell
" turn off for files with any extension
autocmd BufRead,BufNewFile *.* setlocal nospell
" turn on for markdown files
autocmd BufRead,BufNewFile *.md setlocal spell
" turn on for text files
autocmd BufRead,BufNewFile *.txt setlocal spell
" turn on for git commits
autocmd FileType gitcommit setlocal spell spelllang=en_us
" ==> Spellcheck Colors
"
" I hate spellcheck's default colors