]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - dotfiles2html/dotfile2html.vim
Do not regenerate zope sitemap
[phdru.name/phdru.name.git] / dotfiles2html / dotfile2html.vim
index 20795ed1a5a89180c1d4970dc7c360a4934af721..81fd6453e9373e5b6c3641c5424af71a72f0ab01 100644 (file)
@@ -1,14 +1,19 @@
-" Convert the file to HTML
 highlight Constant gui=NONE guifg=NONE guibg=NONE
 highlight Special gui=NONE guibg=NONE
 highlight Normal gui=NONE guifg=NONE guibg=NONE
 highlight Error gui=NONE guifg=NONE guibg=NONE
-runtime syntax/2html.vim
 
+" Convert the file to HTML
+TOhtml
+
+" Remove headers
 normal 1G
-1,/^$/d
+1,/^<style/-1d
+
+/^<\/style>/+1
+normal 2dd
 
-normal Gk
+/^<\/body>
 normal 2dd
 
 write