X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=blobdiff_plain;f=macros.vim;fp=macros.vim;h=b0c94ddefdd6a4057ee88caf5bb2bd0b8fbfb884;hp=046e381283aef870c7ebc0b50008867ff8551ecd;hb=e88f3b103ccfad5854f4c5c7e64df998e02c4da9;hpb=c7d02493ef0793e24f6c394952b87ef24dad6015 diff --git a/macros.vim b/macros.vim index 046e381..b0c94dd 100644 --- a/macros.vim +++ b/macros.vim @@ -102,6 +102,11 @@ function RunMarkdownpy(prog) endfunction +function RunAsciidoctor() + execute ":!asciidoctor " . @% +endfunction + + function RunMarkdown() if executable("pandoc") call RunPandoc() @@ -115,6 +120,15 @@ function RunMarkdown() endfunction +function RunAsciidoc() + if executable("asciidoctor") + call RunAsciidoctor() + else + echo "No asciidoc implementation found." + endif +endfunction + + function OnBattery() if has('macunix') return match(system('pmset -g batt'), "Now drawing from 'Battery Power'") != -1