X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=blobdiff_plain;f=macros.vim;fp=macros.vim;h=b33bf4da65992365e37c3886d23716cc993d43ce;hp=b0c94ddefdd6a4057ee88caf5bb2bd0b8fbfb884;hb=23b24b68c3579ebf589ec5bf7ec723e28c997e2e;hpb=a42868971f6ec42974ebf55641f0a47672d9f583 diff --git a/macros.vim b/macros.vim index b0c94dd..b33bf4d 100644 --- a/macros.vim +++ b/macros.vim @@ -10,6 +10,11 @@ function TexTransUmlaute() 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)