]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - dotfiles2html/dotfile2html.vim
Adapted to a new TOhtml format
[phdru.name/phdru.name.git] / dotfiles2html / dotfile2html.vim
index e0dca0a3008c32f26cc5ba8359d474ee6a9a66ae..286a489bc474558b3bc74fecd8fa19819249ddd4 100644 (file)
@@ -1,16 +1,16 @@
-" 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
 
-syntax on
-runtime syntax/2html.vim
+" Convert the file to HTML
+TOhtml
 
+" Remove headers
 normal 1G
-1,/^$/d
+1,/^<body>/d
 
-normal Gk
+/^<\/body>
 normal 2dd
 
 write