Separate config into '.vim/plugins/'
This commit is contained in:
10
.vim/plugin/pandoc.vim
Normal file
10
.vim/plugin/pandoc.vim
Normal file
@@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user