summaryrefslogtreecommitdiff
path: root/vim/.vim
diff options
context:
space:
mode:
authorEkaitz Zárraga <ekaitz.zarraga@fon.com>2016-03-16 10:33:36 +0100
committerEkaitz Zárraga <ekaitz.zarraga@fon.com>2016-03-16 10:33:36 +0100
commit01aa80270bdbd4979eec15271b51480961b70d63 (patch)
tree942aa2f042e6e4cd3ca55e015a92fac9dbaa3683 /vim/.vim
parentf07bd925b160afe3a38ddbf559f456ac74f4c125 (diff)
check if markdown in autocpas
Diffstat (limited to 'vim/.vim')
-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