various naming/reliability

Added breakat chars to preserve footnote and email addresses.
Rename 'exclude' global to 'blacklist'
Removed formatoptions that were interfering with syntax module.
This commit is contained in:
Reed Esau
2014-08-27 04:34:01 -06:00
parent 82d39c442d
commit 14f49ac597
3 changed files with 41 additions and 41 deletions

View File

@@ -30,7 +30,7 @@ if !exists('g:pencil#autoformat')
let g:pencil#autoformat = 1
en
if !exists('g:pencil#autoformat_exclude')
if !exists('g:pencil#autoformat_blacklist')
" by default, pencil does NOT start autoformat if inside any of
" the following syntax groups
"
@@ -38,7 +38,7 @@ if !exists('g:pencil#autoformat_exclude')
"'mkdCode', 'mkdIndentCode' (plasticboy/vim-markdown)
"'markdownFencedCodeBlock', 'markdownInlineCode' (gabrielelana/vim-markdown)
"'txtCode' (timcharper/textile.vim)
let g:pencil#autoformat_exclude = [
let g:pencil#autoformat_blacklist = [
\ 'markdownCode',
\ 'markdownHighlight[A-Za-z0-9]+',
\ 'mkdCode',
@@ -48,8 +48,8 @@ if !exists('g:pencil#autoformat_exclude')
\ 'txtCode',
\ ]
en
let g:pencil#autoformat_exclude_re =
\ '\v(' . join(g:pencil#autoformat_exclude, '|') . ')'
let g:pencil#autoformat_blacklist_re =
\ '\v(' . join(g:pencil#autoformat_blacklist, '|') . ')'
if !exists('g:pencil#joinspaces')
" by default, only one space after full stop (.)