dots/.vim/plugin/pandoc.vim

11 lines
184 B
VimL
Raw Normal View History

2024-09-22 13:13:29 +02:00
fu! Compile()
if expand('%:e') == "md"
:silent exec "!pandoc % -s -o /tmp/op.pdf &"
endif
endfu
fu! Preview()
:call Compile()
:silent exec "!zathura /tmp/op.pdf &"
endfu