X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;ds=sidebyside;f=index.cgi;h=762e162d0bf0c9773d935c00c020f7080c1c2731;hb=ccb6271a4c2a4acecca2b2a4b9e3d1c30da01b9b;hp=d5a86cbd35998c670fb369d2406b084237e50d78;hpb=9387ec8227f89dd872657433855891ce8f88c936;p=vpaste diff --git a/index.cgi b/index.cgi index d5a86cb..762e162 100755 --- a/index.cgi +++ b/index.cgi @@ -43,7 +43,7 @@ function header { # Format a file for viewing function do_print { - if [ -f "$1" ]; then + if [ -f "./$1" ]; then input="$1" elif [ -f "db/$1" ]; then input="db/$1" @@ -67,7 +67,7 @@ function do_print { # has a real terminal, not that we also have to set # term=xterm-256color in vimrc HOME=/home/andy \ - screen -D -m ex -Z -u vimrc \ + screen -D -m ex -nXZ -i NONE -u vimrc \ '+2d|'$trim \ '+%s/ //g' \ '+TOhtml' \ @@ -99,8 +99,9 @@ function do_upload { # Default index page function do_help { filetypes=$( - ls /usr/share/vim/vim{72,files}/syntax/ /home/andy/.vim/after/syntax/ | - sed -n 's/.vim$//p' | sort | uniq + ls /usr/share/vim/vim*/syntax/ /home/andy/.vim/after/syntax/ | + sed -n '/^\(syntax\|manual\|synload\|2html\|colortest\|hitest\).vim$/d; s/.vim$//p' | + sort | uniq ) uploads=$(ls -t db | head -n 5 | sed "s!^!$url!") @@ -169,6 +170,12 @@ cat - <See :help modeline for more information +

BUGS

+ +

SOURCE