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?
"$@"
in the .bashrc function. – xtofl Dec 07 '12 at 20:49gvim
's way of going into background mode.gvim -f
keepsgvim
in the foreground. To make the shell rungvim
in the background we add an&
. The parenthesis in(foo &)
runs the command in a subshell, so thatgvim
does not become a background process of the current shell. Without parenthesis, closing the terminal by clicking the X would also killgvim
.function foo () { ... }
creates a shell function. We must add/usr/bin/
togvim
, otherwise we will get an infinitely recursive function."$@"
passes all arguments. – Håkon A. Hjortland Dec 19 '13 at 10:20