Gvim does not have a global menu (appmenu / application menu) in 12.04, and when starting gvim from a terminal, the following warning appears in the terminal after 25 seconds:
** (gvim:20320): WARNING **: Unable to create Ubuntu Menu Proxy: Timeout was reached
How to fix this?
Solution 1: Make the global menu for gvim work
To get global menu for gvim and to get rid of the warning message, add this to ~/.bashrc and restart the terminal:
Solution 2: Disable global menu for gvim
To just get rid of the warning message, you can disable the global menu, at least for gvim:
For example, add this to ~/.bashrc and restart the terminal:
References
There is a workaround here: https://bugs.launchpad.net/ubuntu/+source/vim/+bug/776499
Create an alias at the top of your shell init file (e.g. ~/.bashrc):
My Ubuntu 12.04 amd64 can work with
gvim -f
.I can add the
-f
(--nofork
) option when startgvim
:This only works for
gvim
.firefox
and others don't have this-f
option.Another potential cause might be the
~/.gnome2/Vim
file. This solution (which suggests that you delete~/.gnome2/Vim
) for the issue in Hardy Heron (before Unity) fixed the issue for me on Ubuntu 13.10.For whatever reason,
gvim -f
didn't work for me.