summaryrefslogtreecommitdiff
path: root/vim/.vim/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'vim/.vim/ftplugin')
-rw-r--r--vim/.vim/ftplugin/markdown.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/.vim/ftplugin/markdown.vim b/vim/.vim/ftplugin/markdown.vim
index 4da685e..3b96bad 100644
--- a/vim/.vim/ftplugin/markdown.vim
+++ b/vim/.vim/ftplugin/markdown.vim
@@ -17,5 +17,5 @@ highlight ColorColumn ctermbg=LightGreen
" Auto-capitalize script
augroup SENTENCES
au!
- autocmd InsertCharPre * if search('\v(%^|[.!?]\_s+|\_^\-\s|\_^title\:\s|\n\n)%#', 'bcnw') != 0 | let v:char = toupper(v:char) | endif
+ autocmd InsertCharPre * if &ft=='markdown' | if search('\v(%^|[.!?]\_s+|\_^\-\s|\_^title\:\s|\n\n)%#', 'bcnw') != 0 | let v:char = toupper(v:char) | endif | endif
augroup END