gvim does not quite obey "set lines=x" in .gvimrc

Bug #989287 reported by Linus Nilsson
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
vim (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After the upgrade from 11.10 to 12.04, gvim usually no longer gets the right height when starting up.

In .gvimrc, I have
set lines=50 columns=102

The expected behaviour is that gvim starts up with 50 lines and 102 columns.

The column part seems to work fine, but the height is usually a little too small. "echo &lines" then says 48. The window sometimes gets the right size though (echo &lines == 50), and sometimes a little too large (echo &lines == 52). In the latter case, the window reaches under the bottom-panel in XFCE.

I have emptied .vimrc, and I have emptied .gvimrc for everything except "set lines=50", but it did not make any difference. So the interaction between options should not be the problem.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: vim-gnome 2:7.3.429-2ubuntu2
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu5
Architecture: amd64
Date: Fri Apr 27 00:03:10 2012
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: vim
UpgradeStatus: Upgraded to precise on 2012-04-26 (0 days ago)

Revision history for this message
Linus Nilsson (lajnold-gmail) wrote :
Revision history for this message
Linus Nilsson (lajnold-gmail) wrote :

It seems it has to do with the AppMenu (http://www.webupd8.org/2011/03/disable-appmenu-global-menu-in-ubuntu).

When I start gvim, I get the message
"** (gvim:30703): WARNING **: Unable to create Ubuntu Menu Proxy: Timeout was reached

Running "UBUNTU_MENUPROXY= gvim" removes that message, and makes gvim start with the right size.

Since I'm in XFCE, the AppMenu doesn't exist anyway as I understand it.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in vim (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.