From: Stefan Huber Date: Fri, 29 Jan 2021 22:47:53 +0000 (+0100) Subject: macros: Add TexTableBfEntries X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=23b24b68c3579ebf589ec5bf7ec723e28c997e2e;p=vimconf.git macros: Add TexTableBfEntries --- 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)