projects
/
vimconf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a428689
)
macros: Add TexTableBfEntries
author
Stefan Huber <shuber@sthu.org>
Fri, 29 Jan 2021 22:47:53 +0000
(23:47 +0100)
committer
Stefan Huber <shuber@sthu.org>
Fri, 29 Jan 2021 22:47:53 +0000
(23:47 +0100)
macros.vim
patch
|
blob
|
history
diff --git
a/macros.vim
b/macros.vim
index b0c94ddefdd6a4057ee88caf5bb2bd0b8fbfb884..b33bf4da65992365e37c3886d23716cc993d43ce 100644
(file)
--- 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)