]> git.sthu.org Git - vimconf.git/commitdiff
macros: Add TexTableBfEntries
authorStefan Huber <shuber@sthu.org>
Fri, 29 Jan 2021 22:47:53 +0000 (23:47 +0100)
committerStefan Huber <shuber@sthu.org>
Fri, 29 Jan 2021 22:47:53 +0000 (23:47 +0100)
macros.vim

index b0c94ddefdd6a4057ee88caf5bb2bd0b8fbfb884..b33bf4da65992365e37c3886d23716cc993d43ce 100644 (file)
@@ -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)