From e632298d3926937e8cf5168344b123f64459be72 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Thu, 28 Sep 2017 15:42:52 -0400 Subject: [PATCH] vim: add naive makeprg for pandoc --- after/ftplugin/pandoc.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/after/ftplugin/pandoc.vim b/after/ftplugin/pandoc.vim index b336a4d..e233e65 100644 --- a/after/ftplugin/pandoc.vim +++ b/after/ftplugin/pandoc.vim @@ -13,3 +13,7 @@ " limitations under the License. """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" setlocal commentstring= + +if executable('pandoc') + let &l:makeprg = 'pandoc -so "%:r.pdf" % $*' +endif