Monday, August 30, 2010

Re: Problem with VIM GUI

On Monday, August 30, 2010 06:11:46 pm Yosi Izaq wrote:
> Hi,
>
> I have this strange condition happening both on Cygwin gvim (and vim -
> g) and on Linux.
> The gvim GUI is missing menu bar (the one with File, Edit etc) and the
> main window is not usable, i.e. it's not possible to enter text.
> Either that or it's in a font so small as render it invisible.
>
> See examples:
> http://picasaweb.google.com/izaqyos/Work?authkey=Gv1sRgCJOj85WR_rTp1QE&fea
> t=directlink
>
> I tried deleting my .vimrc for fear that I introduced a bomb to it but
> the error persists when I load gvim w/o my .vimrc.
> VIM works well w/o GUI.
>
> Any idea how do I start to troubleshoot that?
>
> TIA,
> Yosi
> These are the gvim version outputs.
> Cygwin:
>
> IM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 18 2010 23:57:10)
> Included patches: 1-3
> Compiled by Cygwin/X <cygwin-xfree@cygwin.com>
> Huge 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/share/vim"
> Compilation: gcc -g -O2 -pipe -fno-strength-reduce -I/usr/include/
> ncursesw -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -D_REENTRANT -
> 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/
> gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/
> usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/
> libpng14 -g -O2 -pipe
> Linking: gcc -g -O2 -pipe -fno-strength-reduce -I/usr/include/
> ncursesw -L/usr/lib/ncursesw -o gvim.exe -lgtk-x11-2.0 -lgdk-
> x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lXinerama -lXi -
> lXrandr -lXcursor -lXcomposite -lXdamage -lpangoft2-1.0 -lgio-2.0 -
> lXext -lXfixes -lcairo -lpixman-1 -lglitz -lpng14 -lxcb-render-util -
> lXrender -lxcb-render -lxcb -lXau -lpango-1.0 -lfontconfig -lexpat -
> lfreetype -lz -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -
> lintl -lXt -lX11 -lSM -lICE -lm -lncurses -liconv -lintl
>
> Linux:
> $ gvim --version
> VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 16 2010 12:01:47)
> Compiled by yizaq@yizaq-lnx
> Huge 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 -
> 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 -g -O2
> -I/usr/X11R6/include
> Linking: gcc -L/usr/X11R6/lib -rdynamic -L/usr/local/lib -o vim
> -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -
> lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -
> lgmodule-2.0 -lglib-2.0 -lXt -lncurses -lselinux -lacl -lgpm -
> rdynamic /usr/cisco/packages/perl/perl-5.8.6/lib/5.8.6/i686-linux/
> auto/DynaLoader/DynaLoader.a -L/usr/cisco/packages/perl/perl-5.8.6/lib/
> 5.8.6/i686-linux/CORE -lperl -lcrypt -lutil -lc -L/usr/lib/python2.3/
> config -lpython2.3 -lpthread -lutil -lm -Xlinker -export-dynamic
Menu bar can be added by "set guioptions", eg "set guioptions=gumrLt" where
"m" is the menu bar. For what all these options mean "help guioptions" at vim
command line. Check what is the font by "set gfn" at command line of gvim. For
changing font eg to Monospace "set gfn=Monospace\ bold\ 10" (In Linux). Check
if ".gvimrc" file is present in your home directory. If .gvimrc is present
then gvim will take settings from it rather than .vimrc.

Thanks,
Vivek Bhat

--
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: