Monday, March 7, 2011

Mystery vim7 versus vim6.4 - same term, different results

Ben Schmidt wrote:

> I wonder if both are looking in the same place for terminfo stuff, and
> for terminfo in the same format.

I set TERMINFO to /etc/terminfo. I do not see how a different version of vim
would ignore such a variable, and look in different directories for the
terminfo file. I suppose, if vim could not read the format of this terminfo
file (SunOS5.9), vim would use its builtins, which somehow could be different
for different versions. Not sure how I would check this.

> Do both Vims show the same thing for :set term

yes, for me term and TERM are set to xterm in the t shell, and vim's term is
xterm to. My blind friend on the same machine, logs in using an ancient IBM PC
type monitor. In that case, vim 6.4 can handle the monitor, but vim 7.3 seems
to honor no setting that displays the screen correctly. We have tried pckerm,
vt100, vt102, dumb etc. - nothing works.

> You will then have the output of :version and :set captured in a buffer.
> Write that to a file somewhere, for each version, and then send both to
> the list.

This is long and boring, but here it comes. For vim 7.3:

============================================================
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Sep 26 2010 01:09:29)
Compiled by steve@-f
Normal version with GTK2 GUI. Features included (+) or not (-):
-arabic +autocmd +balloon_eval +browse +builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
-conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff
+digraphs +dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi
+file_in_path +find_in_path +float +folding -footer +fork() +gettext
-hangul_input +iconv +insert_expand +jumplist -keymap -langmap +libcall
+linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname
+mouse +mouseshape -mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm
-mouse_sysmouse +mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg
-osfiletype +path_extra -perl +persistent_undo +postscript +printer -profile
-python -python3 +quickfix +reltime -rightleft -ruby +scrollbind +signs
+smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects
+title
+toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
+vreplace +wildignore +wildmenu +windows +writebackup +X11 -xfontset +xim
+xsmp_interact +xterm_clipboard -xterm_save
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/usr/local/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include
-I/usr/local/include/atk-1.0 -I/usr/local/include/pango-1.0
-I/usr/local/include -I/usr/local/include/freetype2
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DNDEBUG
-I/usr/local/include -I/usr/local/BerkeleyDB.4.7/include
-I/usr/local/ssl/include -I/usr/local/mysql/include
-I/usr/local/rrdtool-1.2.19/include -I/usr/local/include/lzo -O2
-I/usr/local/rrdtool-1.2.19/include -I/usr/local/include
Linking: gcc -L/usr/local/lib -L/usr/local/lib -R/usr/local/lib
-L/usr/local/lib -R/usr/local/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib
-L/usr/local/BerkeleyDB.4.7/lib -R/usr/local/BerkeleyDB.4.7/lib
-R/usr/openwin/lib -L/usr/openwin/lib -R/usr/lib -L/usr/lib
-L/usr/local/mysql/lib/msyql -R/usr/local/mysql/lib/mysql -o vim
-L/usr/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
-lpangoxft-1.0 -lpangox-1.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0
-lgmodule-2.0 -lglib-2.0 -lintl -lXt -lm -lncurses -lintl

Set gives this:

history=40 sections=H ttymouse=xterm2
ignorecase nottybuiltin window=3
scroll=17 ttyfast wrapmargin=5
comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-,:.
tags=/util6/SUNWspro/contrib/vim/share/vim/vim63/doc/tags
viminfo='300,f300,<0,r/var/tmp,r/tmp,n$HOME/.terminfo

For vim 6.4:

====================================================================
VIM - Vi IMproved 6.4 (2005 Oct 15, compiled Feb 21 2006 15:46:19)
Compiled by hoyle@monk
Normal version without GUI. Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+cryptv -cscope +dialog_con +diff +digraphs -dnd -ebcdic -emacs_tags +eval
+ex_extra +extra_search -farsi +file_in_path +find_in_path +folding -footer
+fork() -gettext -hangul_input -iconv +insert_expand +jumplist -keymap
-langmap
+libcall +linebreak +lispindent +listcmds +localmap +menu +mksession
+modify_fname +mouse -mouseshape -mouse_dec -mouse_gpm -mouse_jsbterm
-mouse_netterm +mouse_xterm -multi_byte +multi_lang -netbeans_intg -osfiletype
+path_extra -perl +postscript +printer -python +quickfix -rightleft -ruby
+scrollbind -signs +smartindent -sniff +statusline -sun_workshop +syntax
+tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse
+textobjects +title -toolbar +user_commands +vertsplit +virtualedit +visual
+visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup
-X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/local/gnu/share/vim"
Compilation:
gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fno-strength-reduce
Linking: gcc -L/usr/local/lib -o vim -ltermlib -ldl

Set gives this:

history=40 scroll=17 nottybuiltin ttymouse=xterm2
ignorecase sections=H ttyfast wrapmargin=5
comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-,:.
tags=/util6/SUNWspro/contrib/vim/share/vim/vim63/doc/tags
viminfo='300,f300,<0,r/var/tmp,r/tmp,n$HOME/.viminfo


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: