Tuesday, August 23, 2011

Re: vim -g on Linux runs in background, want foreground

On Tue, Aug 23, 2011 at 1:36 PM, ArgleFargle <rretter AT gmail DOT com> wrote:
> Hello,
>
> Running vim -g (vim in "graphical" mode) on Linux.
>
> Vim seems to place itself in background (in terms of process, not
> graphical display) upon starting up.  The command by which vim was
> started completes and the shell prompt is once again available while
> vim is still running.
>
> Is it possible to tell vim not to do this?
>
> Under some circumstances, it would be useful to keep the Linux shell
> waiting until vim has finished (for instance, if vim were invoked from
> within a shell script and subsequent commands require that the editing
> has finished).
>
> Thank you for any help you can provide, and my apologies if this is a
> repeated (or offensively simple) question.
>
>
> -- Rob
>
> --

The --nofork option should do it for you.

See:
:help --nofork
or more generally:
:help starting
or just:
vim --help

-Jon

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: