diff options
Diffstat (limited to 'vim')
-rw-r--r-- | vim/.vim/ftplugin/markdown.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/.vim/ftplugin/markdown.vim b/vim/.vim/ftplugin/markdown.vim index 8abe28a..1767a80 100644 --- a/vim/.vim/ftplugin/markdown.vim +++ b/vim/.vim/ftplugin/markdown.vim @@ -12,3 +12,9 @@ setlocal formatoptions+=t " Highlight where the lines are more than 80 characters wide setlocal colorcolumn=80 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 +augroup END |