« get me outta code hell

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:
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