From: Andy Spencer Date: Sat, 10 Oct 2009 15:37:44 +0000 (+0000) Subject: google X-Git-Url: http://pileus.org/git/?p=vpaste;a=commitdiff_plain;h=28972a6521ef9cd17f5dc6877a19ae66ed475c32 google --- diff --git a/2html-et.patch b/2html-et.patch deleted file mode 100644 index 50d01b8..0000000 --- a/2html-et.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- /usr/share/vim/vim72/syntax/2html.vim 2009-06-16 06:24:31.000000000 +0000 -+++ /tmp/2html.vim 2009-10-06 23:05:11.000000000 +0000 -@@ -192,7 +192,6 @@ - let s:old_report = &report - let s:old_search = @/ - set notitle noicon --setlocal et - set report=1000000 - - " Split window to create a buffer with the HTML file. -@@ -393,12 +392,16 @@ - - " Expand tabs - let s:expandedtab = strpart(s:line, s:startcol - 1, s:col - s:startcol) -- let idx = stridx(s:expandedtab, "\t") -- while idx >= 0 -- let i = &ts - ((idx + s:startcol - 1) % &ts) -- let s:expandedtab = substitute(s:expandedtab, '\t', repeat(' ', i), '') -- let idx = stridx(s:expandedtab, "\t") -- endwhile -+ if &et -+ let idx = stridx(s:expandedtab, "\t") -+ while idx >= 0 -+ let i = &ts - ((idx + s:startcol - 1) % &ts) -+ let s:expandedtab = substitute(s:expandedtab, '\t', repeat(' ', i), '') -+ let idx = stridx(s:expandedtab, "\t") -+ endwhile -+ else -+ setlocal isprint+=9 -+ endif - - " Output the text with the same synID, with class set to {s:id_name} - let s:id = synIDtrans(s:id) diff --git a/2html.patch b/2html.patch new file mode 100644 index 0000000..ef65e22 --- /dev/null +++ b/2html.patch @@ -0,0 +1,42 @@ +--- /home/andy/.vim/syntax/2html.vim 2009-10-10 15:32:39.000000000 +0000 ++++ /usr/share/vim/vim72/syntax/2html.vim 2009-06-16 06:24:31.000000000 +0000 +@@ -192,6 +192,7 @@ + let s:old_report = &report + let s:old_search = @/ + set notitle noicon ++setlocal et + set report=1000000 + + " Split window to create a buffer with the HTML file. +@@ -244,7 +245,7 @@ + " HTML header, with the title and generator ;-). Left free space for the CSS, + " to be filled at the end. + exe "normal! a\n\e" +-exe "normal! a\n" . &titlestring . "\n\e" ++exe "normal! a\n" . expand("%:p:~") . "\n\e" + exe "normal! a= 0 +- let i = &ts - ((idx + s:startcol - 1) % &ts) +- let s:expandedtab = substitute(s:expandedtab, '\t', repeat(' ', i), '') +- let idx = stridx(s:expandedtab, "\t") +- endwhile +- else +- setlocal isprint+=9 +- endif ++ let idx = stridx(s:expandedtab, "\t") ++ while idx >= 0 ++ let i = &ts - ((idx + s:startcol - 1) % &ts) ++ let s:expandedtab = substitute(s:expandedtab, '\t', repeat(' ', i), '') ++ let idx = stridx(s:expandedtab, "\t") ++ endwhile + + " Output the text with the same synID, with class set to {s:id_name} + let s:id = synIDtrans(s:id) diff --git a/index.cgi b/index.cgi index f70abc7..56e87a0 100755 --- a/index.cgi +++ b/index.cgi @@ -69,7 +69,8 @@ function do_print { HOME=/home/andy \ screen -D -m ex -nXZ -i NONE -u vimrc \ '+set bexpr= fde= fdt= fex= inde= inex= key= pa= pexpr' \ - '+set iconstring= ruf= stl= tal= titlestring=' \ + '+set iconstring= ruf= stl= tal=' \ + "+set titlestring=$1\ -\ vpaste.net" \ '+set noml' \ '+2d|'$trim \ '+%s/\r//g' \ @@ -192,7 +193,7 @@ cat - <index.cgi vimrc htaccess -
  • 2html-et.patch
  • +
  • 2html.patch
  • Subversion
  • diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..cf11ce6 --- /dev/null +++ b/robots.txt @@ -0,0 +1,9 @@ +User-agent: * +Allow: /$ +Allow: /2html.patch +Allow: /htaccess +Allow: /index.cgi +Allow: /vimrc +Allow: /vpaste +Disallow: / +Sitemap: http://vpaste.net/sitemap.xml diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 0000000..eeb399b --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,18 @@ + + + + http://vpaste.net/ + 1.0 + + + http://vpaste.net/vpaste?ft=sh + 0.9 + + + http://vpaste.net/index.cgi?ft=sh + 0.8 + +