Spellcheck for .md and .rst

This commit is contained in:
Jonas Forsberg 2020-06-05 12:53:40 +02:00
parent ccdbd6417d
commit dc43f5bdba
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

4
.vimrc
View File

@ -61,6 +61,10 @@ if has("autocmd")
" To spell check all git commit messages " To spell check all git commit messages
au BufNewFile,BufRead COMMIT_EDITMSG set spelllang=en_us spell nonumber nolist wrap linebreak au BufNewFile,BufRead COMMIT_EDITMSG set spelllang=en_us spell nonumber nolist wrap linebreak
" To spell check all Markdown files
autocmd FileType markdown setlocal spell
autocmd BufRead,BufNewFile *.rst setlocal spell
" Set filetype tab settings " Set filetype tab settings
autocmd FileType python,doctest set ai ts=4 sw=4 sts=4 et autocmd FileType python,doctest set ai ts=4 sw=4 sts=4 et
endif endif