diff options
author | (quasar) nebula <towerofnix@gmail.com> | 2020-11-01 10:51:09 -0400 |
---|---|---|
committer | (quasar) nebula <towerofnix@gmail.com> | 2020-11-01 10:51:09 -0400 |
commit | 89cadbf468519782bc9c2396d6f3f7d75703d846 (patch) | |
tree | 8397ffd1e8f2b7dc3169c5391241c477349fc54b /util.vim |
Diffstat (limited to 'util.vim')
-rw-r--r-- | util.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util.vim b/util.vim new file mode 100644 index 0000000..b448a6a --- /dev/null +++ b/util.vim @@ -0,0 +1,5 @@ +function ConvertChat() + :silent! execute '%g/^$/d' + :silent! execute '%s#^\(\s\+\)\<\(HARRY ANDERSON\):\(.*\)#\1<p class="harry">\2:\3</p>#' + :silent! execute '%s#^\(\s\+\)\<\(.\{-}\):\(.*\)#\1<p class="\L\2\E">\2:\3</p>#' +endfunction |