From d229eb9e2580203c684d32b8c8c9dafb87a06079 Mon Sep 17 00:00:00 2001 From: Reed Esau Date: Fri, 14 Feb 2014 00:46:14 -0700 Subject: [PATCH] explicitly set autoformat of comments --- autoload/pencil.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/pencil.vim b/autoload/pencil.vim index 34eb213..b600786 100644 --- a/autoload/pencil.vim +++ b/autoload/pencil.vim @@ -161,7 +161,8 @@ function! pencil#init(...) abort setlocal autoindent " needed by formatoptions=n setlocal formatoptions+=n " recognize numbered lists setlocal formatoptions+=1 " don't break line before 1 letter word - setlocal formatoptions+=t " autoformat of text, but not comments + setlocal formatoptions+=t " autoformat of text + setlocal formatoptions+=c " autoformat of comments " clean out stuff we likely don't want setlocal formatoptions-=2 " use indent of 2nd line for rest of paragraph