endfunction
+function RunAsciidoctor()
+ execute ":!asciidoctor " . @%
+endfunction
+
+
function RunMarkdown()
if executable("pandoc")
call RunPandoc()
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