« get me outta code hell

initial commit - precanon - Homestuck^2: Preceeding Canon - (re)presentation of HS2 stylized upon Prequel
summary refs log tree commit diff
path: root/util.vim
diff options
context:
space:
mode:
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
commit89cadbf468519782bc9c2396d6f3f7d75703d846 (patch)
tree8397ffd1e8f2b7dc3169c5391241c477349fc54b /util.vim
initial commit HEAD master
Diffstat (limited to 'util.vim')
-rw-r--r--util.vim5
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