1

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.

countunique
  • 866
  • 1
  • 10
  • 25

1 Answers1

1

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.

Paul
  • 7,007
  • 3
  • 23
  • 30