Saturday, March 5, 2011

Re: Toolbars in Gvim (Debian + KDE 4.4.5) won't switch off

On Sat, 5 Mar 2011, John Degen wrote:

> On Mar 5, 4:16 pm, John Degen wrote:
>> I have the following .gvimrc:
>>
>> set vb t_vb=
>> set showcmd
>> set guioptions=aegiLt
>> set tb=
>>
>> But after starting Gvim I still get a toolbar. :verbose set tb? says
>> ~/.gvimrc and if I manually do :set tb= the toolbar disappears as
>> expected. Any ideas?
>
> I found a solution, albeit a rather unsatisfactory one since I don't
> know what I'm doing: I commented out all lines in
> /usr/share/vim/vim73/ menu.vim containing "toolbar". Why aren't the
> settings in this file overridden by my /home/<user>/.gvimrc? The file
> menu.vim appears before my .gvimrc in the output of :scriptnames.
>

You don't want the 't' item in guioptions. That's short for 'tearoff'
menu items. Even if you add:
finish
as the first line of /usr/share/vim/vim73/menu.vim, you still get a
sliver of a menu bar when the 't' is there.

(though I only realized what was happening when I couldn't reproduce the
problem with the Debian vim-gtk package (GTK GUI) but could with
vim-gnome (GTK2-GNOME GUI).)

Not sure if there are other 'tearoff' menus in Vim (so that disabling
't' would be overkill), but that seems like the main problem.

--
Best,
Ben

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

Post a Comment