Hello, I am seeing a problem where execution of seemingly unrelated commands causes a problem with resetting 'lines' variable
" here, lines is set to 23 let g:foo = tempname() call system('touch ' . g:foo) " here it is reset to the height of my xterm - in this case 50 eh? is this a bug or a feature? Below please find a minimal .vimrc as well as the output when starting gvim from an xterm on ubuntu. Further below is my :version information. --------------------------------------------------------------- [20:41:16 [EMAIL PROTECTED] ~ $ cat .vimrc-test if has("gui_running") set lines=23 endif echo &lines let g:foo = tempname() echo g:foo echo &lines call system('touch ' . g:foo) echo &lines [20:41:20 [EMAIL PROTECTED] ~ $ vim -g -u .vimrc-test 23 /tmp/v102439/0 23 50 --------------------------------------------------- :version VIM - Vi IMproved 7.1 (2007 May 12, compiled Oct 4 2007 17:49:39) Included patches: 1-135 Compiled by [EMAIL PROTECTED] 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 +cryptv -cscope +cursorshape +dialog_con_gui +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 -mzscheme +netbeans_intg -osfiletype +path_extra -perl +postscript +printer -profile +python +quickfix +reltime -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_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/ include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/ usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/ usr/lib/glib-2.0/include -g -O2 -I/usr/X11R6/include -I/usr/ include/python2.4 -pthread Linking: gcc -L/usr/X11R6/lib -L/usr/local/lib -o vim -lgtk- x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 - lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor - lXfixes -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 - lXt -lncurses -lacl -L/usr/lib/python2.4/config -lpython2.4 -lutil -lm -Xlinker -export-dynamic --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---