pandoc.vim 367 B

123456789
  1. if exists('current_compiler')
  2. finish
  3. endif
  4. let current_compiler = (exists('g:pandoc#compiler#command') ? g:pandoc#compiler#command : 'pandoc')
  5. let compiler_args = (exists('g:pandoc#compiler#arguments') ? escape(' '.g:pandoc#compiler#arguments, '\ ') : '')
  6. CompilerSet errorformat="%f",\ line\ %l:\ %m
  7. execute 'CompilerSet makeprg='.current_compiler.compiler_args