From 01aa80270bdbd4979eec15271b51480961b70d63 Mon Sep 17 00:00:00 2001 From: Ekaitz Zárraga Date: Wed, 16 Mar 2016 10:33:36 +0100 Subject: check if markdown in autocpas --- vim/.vim/ftplugin/markdown.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vim/.vim') 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 -- cgit v1.2.3