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:
9
.vimrc
9
.vimrc
@@ -309,18 +309,15 @@ nnoremap <F10> :setlocal spell! spelllang=en_us<CR>
|
|||||||
" ==> Spellcheck: only certain file types
|
" ==> Spellcheck: only certain file types
|
||||||
" https://robots.thoughtbot.com/vim-spell-checking
|
" 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
|
" turn on for markdown files
|
||||||
autocmd BufRead,BufNewFile *.md setlocal spell
|
autocmd BufRead,BufNewFile *.md setlocal spell
|
||||||
|
|
||||||
" turn on for text files
|
" turn on for text files
|
||||||
autocmd BufRead,BufNewFile *.txt setlocal spell
|
autocmd BufRead,BufNewFile *.txt setlocal spell
|
||||||
|
|
||||||
|
" turn on for git commits
|
||||||
|
autocmd FileType gitcommit setlocal spell spelllang=en_us
|
||||||
|
|
||||||
" ==> Spellcheck Colors
|
" ==> Spellcheck Colors
|
||||||
"
|
"
|
||||||
" I hate spellcheck's default colors
|
" I hate spellcheck's default colors
|
||||||
|
|||||||
Reference in New Issue
Block a user