vim-pandoc / vim-pandoc-legacy

[UNSUPPORTED/use vim-pandoc/vim-pandoc] vim bundle for pandoc users
143 stars 23 forks source link

Please add a g:loaded_pandoc variable to detect if pandoc loaded #97

Closed docwhat closed 11 years ago

docwhat commented 11 years ago

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.

docwhat commented 11 years ago

Thanks!