Scope of 'guioptions' '!' flag

8 views
Skip to first unread message

Gary Johnson

unread,
Mar 22, 2022, 8:22:32 PM3/22/22
to vim...@googlegroups.com
I just started using the 'guioptions' '!' flag when running gvim for
Windows. It's much less distracting to have the output of a shell
command appear at the bottom of the current window than to see it in
a separate console window.

However, I've noticed an apparent inconsistency in how the '!' flag
is applied. For example,

:!echo hello

prints "hello" at the bottom of the current gvim window, but

:w !echo hello

prints "hello" in a new console window.

I would think that the '!' flag would cause the output of the latter
command to also appear at the bottom of the gvim window. Is there
some reason that this shouldn't be "fixed"?

Regards,
Gary

Bram Moolenaar

unread,
Mar 23, 2022, 7:50:26 AM3/23/22
to vim...@googlegroups.com, Gary Johnson
There is a todo item in the code, src/os_win32.c around line 4800:

// TODO: make the terminal window work with input or output redirected.

I don't know how difficult it would be to implement.

--
Veni, Vidi, Video -- I came, I saw, I taped what I saw.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages