gvim does not quite obey "set lines=x" in .gvimrc
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
ProcVersionSign
Uname: Linux 3.2.0-23-generic x86_64
NonfreeKernelMo
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)
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.