vimwiki

Personal wiki for vim
git clone https://github.com/vimwiki/vimwiki.git
Log | Files | Refs | README | LICENSE

commit c1a5bb51adc8cacaa70e2804106817b68295f932
parent 2c03d82a0e4662adf1e347487d73a9bf4bf6fdac
Author: Patrick Davey <patrick.davey@gmail.com>
Date:   Tue, 14 Oct 2014 15:39:46 +1300

Checks if custom_wiki2html is executable on PATH

Diffstat:
Mautoload/vimwiki/html.vim | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/autoload/vimwiki/html.vim b/autoload/vimwiki/html.vim @@ -1344,7 +1344,7 @@ endfunction " }}} function! s:use_custom_wiki2html() "{{{ let custom_wiki2html = VimwikiGet('custom_wiki2html') - return !empty(custom_wiki2html) && s:file_exists(custom_wiki2html) + return !empty(custom_wiki2html) && (s:file_exists(custom_wiki2html) || s:binary_exists(custom_wiki2html)) endfunction " }}} function! vimwiki#html#CustomWiki2HTML(path, wikifile, force) "{{{ @@ -1570,6 +1570,10 @@ function! s:file_exists(fname) "{{{ return !empty(getftype(expand(a:fname))) endfunction "}}} +function! s:binary_exists(fname) "{{{ + return executable(expand(a:fname)) +endfunction "}}} + " uses VimwikiGet('path') function! vimwiki#html#get_wikifile_url(wikifile) "{{{ return VimwikiGet('path_html').