summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2022-09-14 17:46:05 +0200
committerAhmed Abdelhalim <[email protected]>2022-09-14 17:48:57 +0200
commit3917c1f430429672d1d371b117b9d010d098050e (patch)
tree15ca0b6deae880b63f962ec2dfebd5299e0b6e1e
parent88f317cd76067196da72e94f451cee6a5f74563b (diff)
Add spell check and completion for markdown files too
-rw-r--r--.vimrc5
1 files changed, 2 insertions, 3 deletions
diff --git a/.vimrc b/.vimrc
index 6db1e8e..a943c5f 100644
--- a/.vimrc
+++ b/.vimrc
@@ -155,9 +155,8 @@ autocmd BufNewFile,BufRead *.html.erb set filetype=html " for ruby erb tem
autocmd BufNewFile,BufRead *.json.jbuilder set filetype=ruby " for ruby json template files
autocmd BufNewFile,BufRead,BufReadPost *.tsx set syntax=javascript " better tsx highlighting than polyglot defaults
autocmd BufNewFile,BufRead *.yaml.gotmpl set filetype=yaml " for highlighting YAML go templates as yaml files
-" autocmd FileType markdown setlocal spell " spell check markdown files
-autocmd FileType gitcommit setlocal spell " spell check commits
-autocmd FileType gitcommit set complete+=spell " spell complete with CTRL+N/CTRL+P
+autocmd FileType gitcommit,markdown setlocal spell " spell check commits and markdown files
+autocmd FileType gitcommit,markdown set complete+=spell " spell complete with CTRL+N/CTRL+P
autocmd FileType ruby setlocal nospell " disable spell checking for ruby documentation
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""