vim-pandoc
vim-pandoc copied to clipboard
`:Pandoc` doesn't work after following links in vimwiki
I am using vim-pandoc plugin with vimwiki. After I follow a link using vimwiki, :Pandoc pdf, :Pandoc html etc commands seem to become unavailable. I get the error:
E492: Not an editor command: Pandoc pdf -V geometry:margin=3cm -V fontsize=12pt
It works when I first open a markdown file, but after opening a link I get this error. I am using the following settings with vimwiki:
let g:vimwiki_ext2syntax = {'.md': 'markdown'}
let g:vimwiki_list = [{'path': '~/Dropbox/Data/vimwiki/',
\'syntax': 'markdown',
\'ext': 'md',
\'path_html': '~/Dropbox/Data/vimwiki_html/',
\'html_filename_parametrization': 1,
\'template_path': '~/Dropbox/Data/vimwiki/templates/',
\'template_default': 'default',
\'template_ext': '.tpl'}]
Also this setting with pandoc:
let g:pandoc#filetypes#handled = ["pandoc", "markdown"]
let g:pandoc#filetypes#pandoc_markdown=0
let g:pandoc#keyboard#display_motions = 0
let g:vim_markdown_no_default_key_mappings = 1
I tried checking filetype, of course it says vimwiki (even after I follow a link). Changing the filetype to markdown or pandoc doesn't work either.
Will appreciate any help. Thanks!