pandoc.vim 968 B

1234567891011121314151617181920212223
  1. " Pandoc files are to explicitly use `.pandoc`.
  2. " Normal markdown files should not use Pandoc Markdown behaviours.
  3. let g:pandoc#filetypes#pandoc_markdown = 0
  4. " Pandoc's syntax concealing does fancy character conversions e.g. '...' to
  5. " proper ellipsis. However, the conceal highlighting often does not work well
  6. " with the Goyo/Limelight (distraction-free writing) plugins, which otherwise
  7. " complement Pandoc.
  8. let g:pandoc#syntax#conceal#use = 0
  9. " Hard-wrap lines to 80 characters, except for headers and code blocks.
  10. let g:pandoc#formatting#mode = 'hA'
  11. let g:pandoc#formatting#textwidth = 80
  12. " Write `docx` versions of `pandoc` files on save.
  13. let g:pandoc#command#autoexec_on_writes = 1
  14. let g:pandoc#command#autoexec_command = 'Pandoc docx --smart'
  15. " Correct spelling using first suggestion from spell check.
  16. map <leader>z 1z=
  17. " Omni-complete from bibliographic sources e.g. bibtex. Citekeys start with '@'.
  18. autocmd FileType pandoc let b:vcm_omni_pattern = '@'