From 3917c1f430429672d1d371b117b9d010d098050e Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Wed, 14 Sep 2022 17:46:05 +0200 Subject: Add spell check and completion for markdown files too --- .vimrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '.vimrc') 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 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -- cgit v1.2.3