Until recently, the GUI used a "dumb" terminal for external commands.
With patch 8.0.1616 it is now possible to run an external command inside
the GUI window.  Try it out with:
        :set go+=!
        :!cat testdir/color_ramp.txt

Without adding "!" to 'guioptions' it doesn't work at all.  On Unix the
output looks correct.

You can even run Vim inside gvim (not that this is useful :-).

For Win32 the terminal window is not used when the input or output is
redirected, e.g. for:
        :10,30w !wc

The reason is that it appears that Winpty doesn't do the redirection.
The whole of "</tmp/somefile" is seen as a file name.  Does someone want
to look into making that work?  You can force it to work by removing the
check for "options" in mch_call_shell():

 /* TODO: make the terminal window work with input or output redirected. */
    if (vim_strchr(p_go, GO_TERMINAL) != NULL
         && (options & (SHELL_FILTER|SHELL_DOOUT|SHELL_WRITE|SHELL_READ)) == 0)


Unfortunately, the colors, like with the color_ramp example, don't work
well in Win32.  The console only supports 16 colors, but at least some
of them should show up.


Depending on how well it works I intend to add "!" to 'guioptions' by
default.  As it is now, probably not for Win32.  Even though it would be
most useful there.


-- 
How To Keep A Healthy Level Of Insanity:
18. When leaving the zoo, start running towards the parking lot,
    yelling "run for your lives, they're loose!!"

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui