and removed the 'w' option, as it causes more problems than it fixes

This commit is contained in:
Reed Esau
2014-01-13 21:23:05 -07:00
parent fd6f590d4a
commit 785cdfac80

View File

@@ -49,8 +49,8 @@ function! pencil#setAutoFormat(mode)
let b:last_autoformat = a:mode == -1 ? !b:last_autoformat : a:mode
if b:last_autoformat
augroup pencil_autoformat
autocmd InsertEnter <buffer> set formatoptions+=aw
autocmd InsertLeave <buffer> set formatoptions-=aw
autocmd InsertEnter <buffer> set formatoptions+=a
autocmd InsertLeave <buffer> set formatoptions-=a
augroup END
else
silent! autocmd! pencil_autoformat * <buffer>