Ubuntu: Application running in foreground?


Gvim has the -f option. Its man page says,

-f Foreground.    For  the  GUI  version, Vim will not fork and                    detach from the shell it was started in.  

What does this mean?

I encountered this option when trying to make the global menu work for gvim from How to get global application menu for gvim?.

I thought it would be that gvim -f file & would show gvim and gvim file & wouldn't. But they both seem to have same behavior.


The difference should be more apparent if you try it from a terminal without the ampersands. By default, gvim goes into the background so the user can run other commands, but -f makes it wait till the editor window closes.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »