Re: Filter-like command -- but to insert instead of replacing

2017-02-09 Thread arocker
> Usability takes thought and deliberation. Every time someone asks for > a random feature the solution should not be "let's add a new > :dothisonething command". Agreed. The approach should be "What is the general case, of which this is a particular example?". Then you only have to solve the cla

Re: Filter-like command -- but to insert instead of replacing

2017-02-09 Thread Gary Johnson
On 2017-02-09, Justin M. Keyes wrote: > On Thu, Feb 9, 2017 at 5:49 PM, Sylvain Leroux wrote: > > Thank you for your reply Bram, > > And more generally thank you for your great work & continuous > > involvement with Vim. > > > > > > Some comments inline: > > > > On 02/09/2017 04:06 PM, Bram Moolen

Re: Filter-like command -- but to insert instead of replacing

2017-02-09 Thread Justin M. Keyes
On Thu, Feb 9, 2017 at 5:49 PM, Sylvain Leroux wrote: > Thank you for your reply Bram, > And more generally thank you for your great work & continuous > involvement with Vim. > > > Some comments inline: > > On 02/09/2017 04:06 PM, Bram Moolenaar wrote: >> I don't think it can be done with one comm

Re: Filter-like command -- but to insert instead of replacing

2017-02-09 Thread Sylvain Leroux
Thank you for your reply Bram, And more generally thank you for your great work & continuous involvement with Vim. Some comments inline: On 02/09/2017 04:06 PM, Bram Moolenaar wrote: > I don't think it can be done with one command. Simplest seems to be to > copy the text and then filter it. >

Re: Filter-like command -- but to insert instead of replacing

2017-02-09 Thread 'Guyzmo' via vim_use
Hi list, On Thu, Feb 09, 2017 at 04:06:34PM +0100, Bram Moolenaar wrote: > Would not be a bad idea to have an Ex command for this. Not sure what > to call it, :feed perhaps? :writeread ? why not implementing it as a command that pipes the selection into the command, and pipes the output into a

Re: Filter-like command -- but to insert instead of replacing

2017-02-09 Thread Bram Moolenaar
Sylvain Leroux wrote: > I finally decided to post here as I can't find the solution by myself. > I'm looking for a way to use some range of the buffer as input to an > external command, and *inserting* the command output into the buffer. > > I'm aware of the `!` command but it doesn't match my n