projects
/
vimconf.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
init: termdebug split windows
[vimconf.git]
/
macros.vim
diff --git
a/macros.vim
b/macros.vim
index 046e381283aef870c7ebc0b50008867ff8551ecd..b33bf4da65992365e37c3886d23716cc993d43ce 100644
(file)
--- a/
macros.vim
+++ b/
macros.vim
@@
-10,6
+10,11
@@
function TexTransUmlaute()
execute ':%s/²/\^2/&'
endfunction
execute ':%s/²/\^2/&'
endfunction
+function! s:texTableBfEntries()
+ execute 's/\( *\)\([^ &][^&]*[^ &]\)\( \+\)/\1\\textbf{\2}\3/g'
+endfunction
+
+command! -range TexTableBfEntries call s:texTableBfEntries()
"Open current file with a specific program
function OpenIn(prog)
"Open current file with a specific program
function OpenIn(prog)
@@
-102,6
+107,11
@@
function RunMarkdownpy(prog)
endfunction
endfunction
+function RunAsciidoctor()
+ execute ":!asciidoctor " . @%
+endfunction
+
+
function RunMarkdown()
if executable("pandoc")
call RunPandoc()
function RunMarkdown()
if executable("pandoc")
call RunPandoc()
@@
-115,6
+125,15
@@
function RunMarkdown()
endfunction
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
function OnBattery()
if has('macunix')
return match(system('pmset -g batt'), "Now drawing from 'Battery Power'") != -1