diff options
author | Ekaitz Zárraga <ekaitz.zarraga@fon.com> | 2016-03-16 10:33:36 +0100 |
---|---|---|
committer | Ekaitz Zárraga <ekaitz.zarraga@fon.com> | 2016-03-16 10:33:36 +0100 |
commit | 01aa80270bdbd4979eec15271b51480961b70d63 (patch) | |
tree | 942aa2f042e6e4cd3ca55e015a92fac9dbaa3683 | |
parent | f07bd925b160afe3a38ddbf559f456ac74f4c125 (diff) |
check if markdown in autocpas
-rw-r--r-- | vim/.vim/ftplugin/markdown.vim | 2 |
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 |