Additional blacklist items for links

Avoid entering autoformat when entering link definitions.
This commit is contained in:
Reed Esau
2014-08-27 05:40:14 -06:00
parent ad8c4b4504
commit 0fc7d8caad
2 changed files with 17 additions and 5 deletions

View File

@@ -125,7 +125,7 @@ When inserting text while in *HardPencil* mode, Vims autoformat feature will
enabled by default and can offer many of the same benefits as soft line wrap. enabled by default and can offer many of the same benefits as soft line wrap.
An exception: if used with popular syntax modules\*, _pencil_ will **disable** An exception: if used with popular syntax modules\*, _pencil_ will **disable**
autoformat when you enter Insert mode from inside a code block. autoformat when you enter Insert mode from inside a code block or table.
Where you need to manually enable/disable autoformat, you can do so with a command: Where you need to manually enable/disable autoformat, you can do so with a command:
@@ -332,10 +332,21 @@ let g:pencil#wrapModeDefault = 'hard' " or 'soft'
Other plugins of specific interest to writers: Other plugins of specific interest to writers:
* [tpope/vim-markdown][tvm] - Markdown syntax plugin
* [plasticboy/vim-markdown][pvm] - Markdown syntax plugin
* [mattly/vim-markdown-enhancements][mvme] - additional highlighting for tables and footnotes
* [tpope/vim-abolish][ab] - easily search for, substitute, and abbreviate multiple variants of a word * [tpope/vim-abolish][ab] - easily search for, substitute, and abbreviate multiple variants of a word
* [tommcdo/vim-exchange][ex] - easy text exchange operator for Vim * [tommcdo/vim-exchange][ex] - easy text exchange operator for Vim
* [junegunn/limelight.vim][jl] - focus mode that brightens current paragraph * [junegunn/limelight.vim][jl] - focus mode that brightens current paragraph
[ab]: http://github.com/tpope/vim-abolish
[ex]: http://github.com/tommcdo/vim-exchange
[jl]: http://github.com/junegunn/limelight.vim
[tvm]: http://github.com/tpope/vim-markdown
[pvm]: http://github.com/plasticboy/vim-markdown
[mvme]: http://github.com/mattly/vim-markdown-enhancements
If you find the _pencil_ plugin useful, check out these others by [@reedes][re]: If you find the _pencil_ plugin useful, check out these others by [@reedes][re]:
* [vim-colors-pencil][cp] - color scheme for Vim inspired by IA Writer * [vim-colors-pencil][cp] - color scheme for Vim inspired by IA Writer
@@ -350,10 +361,7 @@ If you find the _pencil_ plugin useful, check out these others by [@reedes][re]:
Unimpressed by _pencil_? [vim-pandoc][vp] offers prose-oriented features with its own Markdown variant Unimpressed by _pencil_? [vim-pandoc][vp] offers prose-oriented features with its own Markdown variant
[ab]: http://github.com/tpope/vim-abolish
[cp]: http://github.com/reedes/vim-colors-pencil [cp]: http://github.com/reedes/vim-colors-pencil
[ex]: http://github.com/tommcdo/vim-exchange
[jl]: http://github.com/junegunn/limelight.vim
[lc]: http://github.com/reedes/vim-litecorrect [lc]: http://github.com/reedes/vim-litecorrect
[lx]: http://github.com/reedes/vim-lexical [lx]: http://github.com/reedes/vim-lexical
[qu]: http://github.com/reedes/vim-textobj-quote [qu]: http://github.com/reedes/vim-textobj-quote

View File

@@ -34,13 +34,17 @@ if !exists('g:pencil#autoformat_blacklist')
" by default, pencil does NOT start autoformat if inside any of " by default, pencil does NOT start autoformat if inside any of
" the following syntax groups " the following syntax groups
" "
"'markdownCode', 'markdownHighlight[A-Za-z0-9]+' (tpope/vim-markdown) "'markdownCode', 'markdownUrl', 'markdownIdDeclaration',
"'markdownLinkDelimiter', 'markdownHighlight[A-Za-z0-9]+' (tpope/vim-markdown)
"'mkdCode', 'mkdIndentCode' (plasticboy/vim-markdown) "'mkdCode', 'mkdIndentCode' (plasticboy/vim-markdown)
"'markdownFencedCodeBlock', 'markdownInlineCode' (gabrielelana/vim-markdown) "'markdownFencedCodeBlock', 'markdownInlineCode' (gabrielelana/vim-markdown)
"'mmdTable[A-Za-z0-9]*' (mattly/vim-markdown-enhancements) "'mmdTable[A-Za-z0-9]*' (mattly/vim-markdown-enhancements)
"'txtCode' (timcharper/textile.vim) "'txtCode' (timcharper/textile.vim)
let g:pencil#autoformat_blacklist = [ let g:pencil#autoformat_blacklist = [
\ 'markdownCode', \ 'markdownCode',
\ 'markdownUrl',
\ 'markdownIdDeclaration',
\ 'markdownLinkDelimiter',
\ 'markdownHighlight[A-Za-z0-9]+', \ 'markdownHighlight[A-Za-z0-9]+',
\ 'mkdCode', \ 'mkdCode',
\ 'mkdIndentCode', \ 'mkdIndentCode',