Skip to content

Instantly share code, notes, and snippets.

@RobinCPC
Last active November 14, 2015 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobinCPC/7b70532fa075f0b72003 to your computer and use it in GitHub Desktop.
Save RobinCPC/7b70532fa075f0b72003 to your computer and use it in GitHub Desktop.
fix gvim loading slow

If run gvim in terminal. When gvim is loading slow and show following message:

** (gvim:20320): WARNING **: Unable to create Ubuntu Menu Proxy: Timeout was reached

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:

function gvim () { (/usr/bin/gvim -f "$@" &) }

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:

How do I disable the global application menu?
    Answer #133005 - Several options for how to disable the global menu

For example, add this to ~/.bashrc and restart the terminal:

alias gvim='UBUNTU_MENUPROXY= gvim'

References

https://bugs.launchpad.net/ubuntu/+source/vim/+bug/972968
https://bugs.launchpad.net/ubuntu/+source/vim/+bug/776499
https://bugs.launchpad.net/ubuntu/+source/vim/+bug/987707
http://askubuntu.com/a/132581

Source:

https://askubuntu.com/questions/132977/how-to-get-global-application-menu-for-gvim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment