Comment 31 for bug 776499

Revision history for this message
HÃ¥kon A. Hjortland (post-hakn) wrote :

#30 works fine, but for those who want to keep the global menus, here's some improvements on the solutions in #7 and #24:

Add this to ~/.bashrc:
function gvim () { (/usr/bin/gvim -f "$@" &) }

Or, to also suppress all output from gvim:
function gvim () { (/usr/bin/gvim -f "$@" &>/dev/null &) }

The improvements:
Handle filenames with spaces etc. correctly.
Also, use a subshell, (foo &), instead of the method in #24, foo & disown, to run gvim in the background (although either method seems to work fine).