From 23b24b68c3579ebf589ec5bf7ec723e28c997e2e Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Fri, 29 Jan 2021 23:47:53 +0100 Subject: [PATCH] macros: Add TexTableBfEntries --- macros.vim | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.39.5