gvim tab bar's bug

101 views
Skip to first unread message

Neptune Ning (plan)

unread,
Feb 26, 2008, 10:43:27 AM2/26/08
to vim...@vim.org
Hello,
  I am using gvim and there's a little problem bothering me for a long time.
  when I put gvim's window to full-screen, and open a new tab, then the tab bar shows and the window extends its height, the place where to input command will be out of screen.
  Maybe when the hidden tab bar shows, reducing the editing place 's height by the height of the tab bar should avoid this problem?

  Best Regards,
Plan

Nico Weber

unread,
Feb 26, 2008, 10:51:38 AM2/26/08
to vim...@googlegroups.com
Hi,

> I am using gvim and there's a little problem bothering me for a
> long time.

on which platform are you using gvim? Windows, OS X, Linux (or
something different altogether)?

Nico

frostyplanet(plan)

unread,
Feb 26, 2008, 10:51:47 AM2/26/08
to vim_dev
btw, I am using gentoo and gvim version is 7.1.123.

Best Regards,
Plan

Erik Falor

unread,
Feb 26, 2008, 11:17:09 AM2/26/08
to vim...@googlegroups.com
Which version of Gvim are you using?  Which GUI does it use?  Are you talking about the GUI tab bar, or the text tab bar?
I tried unsuccessfully to reproduce this bug in four versions of gvim, compiled for three different GUIs.  I tried to reproduce it using both the GUI tab bar and the text tab bar; in neither case was I able to make the commandline extend off the screen.

I did notice that I could make the screen shrink by a few lines in both Motif and GTK by following these steps:
<open a fresh, empty Gvim>
:set showtabline=1
:set guioptions-=e
<maximize the window>
:set lines  <echoes "lines=73">
:tabnew
:set guioptions+=e
:set lines <echoes "lines=68">
The window will redraw itself with the GUI tabline, but the bottom edge will raise up one or two lines.  I surmise that the GUI tabline consumes the other three lines.

When I do this over a slow ssh connection, I can see the window initially draw itself such that the 
commandline is off the screen, but the window is immediately resized afterwards.

Here are the details of the Vims I tried this out on:

VIM - Vi IMproved 7.1 (2007 May 12, compiled Feb 7 2008 22:31:25)
Included patches: 1-244
Compiled by fade-in@gemini
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/lib64/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/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -I/usr/include64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE -I/usr/include/python2.4 -pthread -I/usr/lib64/ruby/1.8/x86_64-linux
Linking: gcc -L/usr/lib64 -L. -rdynamic -Wl,-export-dynamic -rdynamic -L/usr/local/lib -o vim -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lXt -lncurses -lgpm -rdynamic -L/usr/local/lib64 /usr/lib64/perl5/5.8.8/x86_64-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib64/perl5/5.8.8/x86_64-linux/CORE -lperl -lutil -lc -L/usr/lib/python2.4/config -lpython2.4 -lutil -Xlinker -export-dynamic -Wl,-R -Wl,/usr/lib64 -L/usr/lib64 -lruby18 -lm


VIM - Vi IMproved 7.1 (2007 May 12, compiled Feb 21 2008 08:32:17)
MS-Windows 32 bit GUI version with OLE support
Included patches: 1-260
Compiled by efalor@SPILLMAN
Huge version with 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 +gettext/dyn -hangul_input +iconv/dyn
+insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +menu +mksession +modify_fname +mouse +mouseshape +multi_byte +multi_lang -mzscheme
+netbeans_intg +ole -osfiletype +path_extra +perl/dyn -postscript +printer +profile +python/dyn +quickfix +reltime +rightleft +ruby/dyn +scrollbind +signs +smartindent -sniff
+statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl -tgetent -termresponse +textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual
+visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup -xfontset -xim -xterm_save -xpm_w32
system vimrc file: "$VIM\vimrc"
user vimrc file: "$HOME\_vimrc"
2nd user vimrc file: "$VIM\_vimrc"
user exrc file: "$HOME\_exrc"
2nd user exrc file: "$VIM\_exrc"
system gvimrc file: "$VIM\gvimrc"
user gvimrc file: "$HOME\_gvimrc"
2nd user gvimrc file: "$VIM\_gvimrc"
system menu file: "$VIMRUNTIME\menu.vim"
Compilation: cl -c /W3 /nologo -I. -Iproto -DHAVE_PATHDEF -DWIN32 -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 /Fo.\ObjGOLYR/ /Ox /GL -DNDEBUG /arch:SSE2 /MT -DFEAT_OLE -DFEAT_GUI_W32 -DDYNAMIC_ICONV -DDYNAMIC_GETTEXT -DFEAT_PYTHON -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python25.dll\" -DFEAT_PERL -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl58.dll\" -DFEAT_RUBY -DDYNAMIC_RUBY -DDYNAMIC_RUBY_VER=18 -DDYNAMIC_RUBY_DLL=\"msvcrt-ruby18.dll\" -DFEAT_HUGE /Fd.\ObjGOLYR/ /Zi
Linking: link /RELEASE /nologo /subsystem:windows /LTCG:STATUS advapi32.lib shell32.lib gdi32.lib comdlg32.lib ole32.lib uuid.lib oldnames.lib kernel32.lib gdi32.lib version.lib winspool.lib comctl32.lib advapi32.lib shell32.lib /machine:i386 /nodefaultlib libcmt.lib oleaut32.lib user32.lib /nodefaultlib:python25.lib WSock32.lib /PDB:gvim.pdb -debug

VIM - Vi IMproved 7.0 (2006 May 7, compiled May 8 2006 17:49:31)
Compiled by fade-in@tux
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 -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -fno-strength-reduce -Wall -I/usr/X11R6/include
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 -lm -lpangoxft-1.0 -lpangox-1.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lXt -lncurses -lgpm

VIM - Vi IMproved 7.0 (2006 May 7, compiled Jun 1 2006 14:10:06)
Compiled by sfarnes@sunrise
Normal version with X11-Motif 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_MOTIF -I/usr/dt/include -I/usr/local/include -g -O2
Linking: gcc -L/usr/dt/lib -R /usr/dt/lib -L/usr/local/lib -o vim -lXmu -lXext -lXm -lXpm -lXt -lX11 -lSM -lICE -lncurses -lnsl -lsocket -ldl

--
Erik Falor
Registered Linux User #445632 http://counter.li.org

Nico Weber

unread,
Feb 26, 2008, 11:45:33 AM2/26/08
to vim...@googlegroups.com
> btw, I am using gentoo and gvim version is 7.1.123.

I can reproduce some weird strange behaviour by starting gvim,
selecting Window Menu->Advanced->Fullscreen in KDE and then
doing :tabnew. Is that what you mean?

Nico

James Vega

unread,
Feb 26, 2008, 12:05:39 PM2/26/08
to vim...@googlegroups.com

I remember looking into similar issues before. If I remember correctly,
KDE sizes the gvim window to fill the screen and then gvim resizes to
the appropriate size in order to prevent having columns/lines cut off.
This makes the gvim window no longer "maximized" according to KDE and
therefore not size constrained. Now, when you create a tab in Vim, the
window size grows to accomodate the new tab bar and KDE doesn't push
back with size constraints.

It seems that there is some miscommunication between gvim and KDE.
Although, it'd probably be better in general to have gvim maintain the
size of the application window and reduce the size of the editing area
when creating the tab bar. This is all simple observation as I haven't
had time to dig into the relevant internals to see how things are coded
to behave.
--
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <jame...@jamessan.com>

signature.asc

François Ingelrest

unread,
Feb 26, 2008, 12:17:15 PM2/26/08
to vim...@googlegroups.com

I think this bug has been fixed a few weeks ago by patch 7.1.244:
ftp://ftp.vim.org/pub/vim/patches/7.1/README

I was having the same issue and it's no longer the case.

Patrick Texier

unread,
Feb 26, 2008, 1:41:46 PM2/26/08
to vim...@googlegroups.com
Le Tue, 26 Feb 2008 18:17:15 +0100, François Ingelrest a écrit dans le
message <e9adacf30802260917v484...@mail.gmail.com> :


> I think this bug has been fixed a few weeks ago by patch 7.1.244:
> ftp://ftp.vim.org/pub/vim/patches/7.1/README
>
> I was having the same issue and it's no longer the case.

I'm using gVim 7.1.264 on Linux (GTK1, KDE 3.0.3, font Adobe Courier
Medium 14 ISO-10646-1).

With a maximized Windows (and KDE toolbar visible) I have :

:set lines? columns?
lines 42
colunms 110

:tab help
:set lines? columns?
lines 42
colunms 80

tabs takes about two lines on screen and Vim command line becomes hidden
by KDE toolbar.
--
Patrick Texier

vim:syntax=mail:ai:ts=4:et:tw=72

Neptune Ning (plan)

unread,
Feb 27, 2008, 3:41:38 AM2/27/08
to vim...@googlegroups.com
Hi all,

  I appreciate for you replay. Since Gentoo has only max version 7.1.213 of gvim currently , so I downloaded all the patches prior to 7.1.265 and built it myseltf. I run " ./vim -g"  in the source directory instead because I didn't manage to get gvim built . The patches seemed not work for me, here's the result:

./vim -g
:set lines columns
lines=24
columns=80
:tabnew
:set lines columns
  lines=24
  columns=80

I noticed the whole window growed and shrinked vertically when I opened two tabs and opened only one. When full-screen, it acted the same.

I used "./configure --enable-gtk2-check --enable-gnome-check --enable-gui=gtk2".
-----------------------------------------
./vim --version
VIM - Vi IMproved 7.1 (2007 May 12, compiled Feb 27 2008 15:56:12)
Included patches: 1, 3, 5-265
Compiled by root@localhost

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 -I/usr/include/freetype2 -I/usr/include/libpng12     -g -O2       
Linking: gcc   -L/usr/local/lib -o vim   -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lXt -lncurses

------------------------------------------------------------
Here's some of my packages version :
 gtk+      2.12.5-r1
 window manager is metacity 2.20.2
-------------------------------------------------------
My CFLAGS is "-02 -march=pentium-m" which is normal according to a "Celeron M" cpu.

Is there something I did wrong or the problem is somthing else ?


Best Regards,
plan
screenshot.png

Neptune Ning (plan)

unread,
Feb 27, 2008, 6:26:50 AM2/27/08
to vim...@googlegroups.com

I noticed patch 244 contains changes in gui.c somewhere near line 1296, The attachment is my debug log, ( I repeated serveral times, and ths result was the same.) Hope this will help.

vim version is:
Best Regards,
plan

debug_note

Charles E Campbell Jr

unread,
Feb 27, 2008, 9:23:29 AM2/27/08
to vim...@googlegroups.com
Neptune Ning (plan) wrote:
> Hi all,
>
> I appreciate for you replay. Since Gentoo has only max version
> 7.1.213 of gvim currently , so I downloaded all the patches prior to
> 7.1.265 and built it myseltf. I run " ./vim -g" in the source
> directory instead because I didn't manage to get gvim built .
Hello!

Just a comment on building gvim: you don't have to. All you need is a
symbolic link. Assuming vim is in /usr/local/bin, all you need to do is
(as root):

cd /usr/local/bin
ln -s /usr/local/bin/vim gvim

Now, the "make install" process generally does this itself; so I'm
wondering why it wasn't done for you?

Regards,
Chip Campbell

Patrick Texier

unread,
Feb 27, 2008, 10:22:23 AM2/27/08
to vim...@googlegroups.com
Le Wed, 27 Feb 2008 08:41:38 +0000, Neptune Ning (plan) a écrit dans le
message <1e25f1be0802270041w266...@mail.gmail.com> :

> I appreciate for you replay. Since Gentoo has only max version 7.1.213 of
> gvim currently , so I downloaded all the patches prior to 7.1.265 and built
> it myseltf.

Thanks for you tiny screen copy attachement, it's my yesterday test.

I'm using now text tabs with the following line in my .vimrc:
set guioptions-=e (for ultimates wimmers ;-) set guioptions=)

GUI tabs have at least two bugs :

- open tab uses startup columns option and not current:

$ gvim -c":set lines=25 columns=60"
maximazes window (for me 42 x 110)
:tab new [or any tab command like tab help or tabedit]
You get 60 columns (and not current value)

- lines ignore KDE toolbar.

> Compiled by root@localhost

root is needed only for make install

> Normal version with GTK2 GUI. Features included (+) or not (-):

use ./configure --with-features=big (or huge)
--
Patrick Texier,
Frulon, 36190 Orsennes, France (46°31'N, 01°41'E)
<http://www.genindre.org>
<http://www.genindre.org/cgi-bin/geneweb.cgi?b=pt>

Tony Mechelynck

unread,
Feb 27, 2008, 5:28:37 PM2/27/08
to vim...@googlegroups.com
Neptune Ning (plan) wrote:
> Hi all,
>
> I appreciate for you replay. Since Gentoo has only max version 7.1.213
> of gvim currently , so I downloaded all the patches prior to 7.1.265 and
> built it myseltf. I run " ./vim -g" in the source directory instead
> because I didn't manage to get gvim built .
[...]

> -----------------------------------------
> ./vim --version
> VIM - Vi IMproved 7.1 (2007 May 12, compiled Feb 27 2008 15:56:12)
> Included patches: 1, 3, 5-265
> Compiled by root@localhost
> Normal version with GTK2 GUI. Features included (+) or not (-):
[...]


What you built is a GUI version of Vim. By default, on Linux, it is named vim
because it can work either in console mode or in GUI mode. To be able to
invoke it as any of the "alternate names" mentioned under ":help ex", do the
following in the bash shell (once: the next time you compile Vim, you won't
have to do it again):

cd /usr/local/bin
for p in vi ex exim view gvim gex gview rvim rview rgvim rgview evim eview
vimdiff gvimdiff; do ln -sv vim $p; done

-- from "for" to "done" is one long line; you may remove any program names
which you don't want to install, e.g. remove exim if you use the "other" exim
for handling mail.

The above is what is meant by the following sentence in the help:

On Unix, you would normally have one executable called Vim, and links from the
different startup-names to that executable.


Best regards,
Tony.
--
Every solution breeds new problems.

Neptune Ning (plan)

unread,
Feb 29, 2008, 8:40:33 AM2/29/08
to vim...@googlegroups.com
Thanks for explaining to me, now I understand the relationship between gvim and vim. I didn't do "make install" was because my purpose of compiling vim is for testing,  and didn't want to get it mix with vim/gvim managed by Gentoo portage.

Maybe the bug exists in vim's GUI version (it has nothing to do with gvim Ex, gvim just adds menus and toolbars). It's the same GUI tabbar no matter whether in vim -g or gvim. Am I get it right?

did any one see my debug log (it's in my previous post) ? The calculation result in function gui_resize_shell() of gui.c is somehow weird. after open a new tab , gui.num_rows  did change from 24 to 22, but when I saw  GUI tab bar came out, gui.num_rows changed back to 24 again,

Best regards,
Plan

Tony Mechelynck

unread,
Feb 29, 2008, 5:45:25 PM2/29/08
to vim...@googlegroups.com
Neptune Ning (plan) wrote:
> Thanks for explaining to me, now I understand the relationship between
> gvim and vim. I didn't do "make install" was because my purpose of
> compiling vim is for testing, and didn't want to get it mix with
> vim/gvim managed by Gentoo portage.

If Gentoo's vim/gvim are elsewhere (e.g. in /usr/bin/vim with runtime files in
/usr/share/vim/vim71/) then you can "make install" with no problems: it will
install your own-compiled Vim in /usr/local/bin (which is earlier in the
$PATH) with runtime files in /usr/local/share/vim/vim71/. Any package
dependencies will still be fulfilled by Gentoo's Vim, but invoking "vim" will
run yours -- which shouldn't be a problem if it's a Big or Huge version --
"bigger" than Gentoo's, so it has at least the same capabilities.

>
> Maybe the bug exists in vim's GUI version (it has nothing to do with
> gvim Ex, gvim just adds menus and toolbars). It's the same GUI tabbar no
> matter whether in vim -g or gvim. Am I get it right?

Yes. If your Vim is compiled "with GUI", "vim -g" is identical with "gvim"
(assuming gvim redirects to vim). If it isn't, neither will work.

[...]
> Best regards,
> Plan


Best regards,
Tony.
--
Certainly there are things in life that money can't buy, but it's very funny--
Did you ever try buying them without money?
-- Ogden Nash

Reply all
Reply to author
Forward
0 new messages