From 9ad784bc23a9292beb7f96666514c581081ec0d2 Mon Sep 17 00:00:00 2001 From: Damien Burke Date: Mon, 2 Jan 2017 22:37:32 -0800 Subject: [PATCH] Add vim-pandoc support Do not autoformat code, HTML, LaTeX math blocks, lists, tables or YAML in pandoc documents. --- plugin/pencil.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugin/pencil.vim b/plugin/pencil.vim index e65887c..55cdbc3 100644 --- a/plugin/pencil.vim +++ b/plugin/pencil.vim @@ -111,6 +111,16 @@ if !exists('g:pencil#autoformat_config') \ 'txtCode', \ ], \ }, + \ 'pandoc': { + \ 'black': [ + \ '^pandoc.*Code.*', + \ 'pandocHTML', + \ 'pandocLaTeXMathBlock', + \ '^pandoc.*List.*', + \ '^pandoc.*Table.*', + \ 'pandocYAMLHeader', + \ ], + \ } \ } en if !exists('g:pencil#autoformat_aliases')