From: Andy Spencer Date: Mon, 24 May 2010 02:17:52 +0000 (+0000) Subject: fix some bugs X-Git-Url: http://pileus.org/git/?p=vpaste;a=commitdiff_plain;h=6a9662553e44676020a634fb15625cc068b642f5 fix some bugs --- diff --git a/index.cgi b/index.cgi index b2d9550..295f031 100755 --- a/index.cgi +++ b/index.cgi @@ -81,11 +81,11 @@ function do_print { sed "1a$(get_modeline)" "$input" > "$tmp" # - I have some plugins in ~/.vim - # - Run ex in a pty to trick it into thinking that it + # - Run ex in screen to trick it into thinking that it # has a real terminal, note that we also have to set # term=xterm-256color in vimrc HOME=/home/andy \ - /home/andy/bin/pty ex -nXZ -i NONE -u vimrc \ + screen -D -m ex -nXZ -i NONE -u vimrc \ '+set bexpr= fde= fdt= fex= inde= inex= key= pa= pexpr' \ '+set iconstring= ruf= stl= tal=' \ "+set titlestring=$1\ -\ vpaste.net" \ @@ -95,7 +95,7 @@ function do_print { '+TOhtml' \ "+sav! $output" \ '+qall!' \ - "$tmp" /dev/null 2>&1 + "$tmp" header text/html cat "$output" diff --git a/vimrc b/vimrc index c919811..56f60e3 100644 --- a/vimrc +++ b/vimrc @@ -3,6 +3,7 @@ set nocompatible set encoding=utf-8 set term=xterm-256color +set modelines=10 filetype plugin indent on syntax on @@ -10,4 +11,6 @@ colorscheme grey let html_use_css = 1 let html_use_encoding = "utf8" +let g:xterm_trim_escapes = 1 +let g:xterm_start_pattern = "^$" "let use_xhtml = 1