Closed docwhat closed 11 years ago
Please add a g:loaded_pandoc variable for detecting if pandoc loaded.
g:loaded_pandoc
It's a common idiom and it is essential for setting up a ~/.vimrc to behave correctly depending on whether vim-pandoc loaded correctly (e.g. if python was available, etc.)
~/.vimrc
Here is an example you can crib from: https://github.com/tpope/vim-unimpaired/blob/master/plugin/unimpaired.vim#L6-L9
You could throw in a check for executable('pandoc') as well if you wanted.
executable('pandoc')
Thanks!
Please add a
g:loaded_pandoc
variable for detecting if pandoc loaded.It's a common idiom and it is essential for setting up a
~/.vimrc
to behave correctly depending on whether vim-pandoc loaded correctly (e.g. if python was available, etc.)Here is an example you can crib from: https://github.com/tpope/vim-unimpaired/blob/master/plugin/unimpaired.vim#L6-L9
You could throw in a check for
executable('pandoc')
as well if you wanted.