[PATCH] Pipes for win32 vim

33 views
Skip to first unread message

Vincent Berthoux

unread,
Feb 27, 2011, 6:38:20 PM2/27/11
to vim...@googlegroups.com
Hello,

This patch implement a pipe mechanism for the Win32 version of vim,
it's benefits are :
- No more temporary files for filtering
- No console window opening while launching a shell command
- Command results are directly displayed in the GVim window.
With this patch, gvim behave the same way as gvim in Linux/Mac OS with
regard to the shell.

Tested on : Windows7 x64 - GVim

vim-win32-pipes.02_28_2011.patch

Bram Moolenaar

unread,
Feb 28, 2011, 4:05:24 PM2/28/11
to Vincent Berthoux, vim...@googlegroups.com

Vincent Berthoux wrote:

Nice.

One reason to use a console is that some programs don't work without
one. In rare cases it may cause the system to crash. I'm not sure how
often this still happens with the check that you included, but perhaps
it also requires an option so that the user can switch off pipes when
they are not wanted? Either globally or something that can be selected
per command.

--
ARTHUR: Well, I AM king...
DENNIS: Oh king, eh, very nice. An' how'd you get that, eh? By exploitin'
the workers -- by 'angin' on to outdated imperialist dogma which
perpetuates the economic an' social differences in our society! If
there's ever going to be any progress--
The Quest for the Holy Grail (Monty Python)

/// Bram Moolenaar -- Br...@Moolenaar.net -- 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 ///

Vincent Berthoux

unread,
Feb 28, 2011, 4:15:56 PM2/28/11
to Bram Moolenaar, vim...@googlegroups.com
Hmm I didn't think about it, but I think I can do something by using
the 'shelltemp' option, as the meaning more or less match the use of
pipe, if we don't use pipes. We can show the command window as usual
if 'shelltemp' is off, this way remaining backward compatible with the
current behavior.

I'm going to investigate and send an updated patch

Vincent Berthoux

unread,
Mar 1, 2011, 1:59:54 PM3/1/11
to Bram Moolenaar, vim...@googlegroups.com
Here is the updated patch with the fallback to the old behavior if shelltemp is
set to true.

vim-win32-pipes.03_01_2011.patch
Reply all
Reply to author
Forward
0 new messages