I am trying to use GUI Vim as the editor for my xxx application.
When the xxx application launches GUI Vim to edit a file, the control immediately returns to the xxx application. How do I start GUI Vim, so that the control returns to the xxx application only after I quit Vim? You have to start GUI Vim with the ‘-f’ (foreground) command line option:
$ gvim -f
By default, GUI Vim will disconnect from the program that started Vim. With the ‘-f’ option, GUI Vim will not disconnect from the program that started it.