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
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 "$@" &) }
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'
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
https://askubuntu.com/questions/132977/how-to-get-global-application-menu-for-gvim