« get me outta code hell

util.vim - precanon - Homestuck^2: Preceeding Canon - (re)presentation of HS2 stylized upon Prequel
summary refs log tree commit diff
path: root/util.vim
blob: b448a6a5d8c2d921428409968017b3f4b9055b9b (plain)
1
2
3
4
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