Problem with multiline command after :g under Windows

2010-02-16 Thread James Kanze
On 15 Feb, 22:07, Bruce Wheeler wrote: > On Mon, 15 Feb 2010 02:42:28 -0800 (PST), James Kanze > wrote: > >How do you get a memory fault to simply return a bad return > >code under Windows? > >I'm interested in writing regression test programs which run > >in batch mode. At present, if my code

Re: Problem with multiline command after :g under Windows

2010-02-16 Thread Tycho Andersen
On Tue, 16 Feb 2010, James Kanze wrote: On 15 Feb, 22:07, Bruce Wheeler wrote: On Mon, 15 Feb 2010 02:42:28 -0800 (PST), James Kanze wrote: So how do you run a suite of regression tests under Windows? myAssert() above would be a possibility if you are only trying to capture asserts. Asse

Re: Problem with multiline command after :g under Windows

2010-02-16 Thread James Kanze
On 16 Feb, 18:04, James Kanze wrote: > On 15 Feb, 22:07, Bruce Wheeler wrote: Oops. Somehow, the wrong buffer got copied into the posting window. That should have been: I want to insert a line immediately after a number of lines; for this, I'm trying to use :g, something like: :g/pattern/

Re: Problem with multiline command after :g under Windows

2010-02-16 Thread Christian Brabandt
Hi James! On Di, 16 Feb 2010, James Kanze wrote: > I want to insert a line immediately after a number of lines; for > this, I'm trying to use :g, something like: > :g/pattern/a\ > new line > As soon as I enter the return after the \, however, I get: > E488: Trailing characters This i

Re: Problem with multiline command after :g under Windows

2010-02-16 Thread Bee
On Feb 16, 11:33 am, James Kanze wrote: > On 16 Feb, 18:04, James Kanze wrote: > > On 15 Feb, 22:07, Bruce Wheeler wrote: > > Oops.  Somehow, the wrong buffer got copied into the posting > window.  That should have been: > > I want to insert a line immediately after a number of lines; for > this

Re: Problem with multiline command after :g under Windows

2010-02-16 Thread Bee
On Feb 16, 12:09 pm, Bee <200...@calcentral.com> wrote: > On Feb 16, 11:33 am, James Kanze wrote: > > > On 16 Feb, 18:04, James Kanze wrote: > > > On 15 Feb, 22:07, Bruce Wheeler wrote: > > > Oops.  Somehow, the wrong buffer got copied into the posting > > window.  That should have been: > > >

Re: Problem with multiline command after :g under Windows

2010-02-17 Thread Ben Fritz
On Feb 16, 2:09 pm, Bee <200...@calcentral.com> wrote: > > I want to insert a line immediately after a number of lines; for > > this, I'm trying to use :g, something like: > >     :g/pattern/a\ > >     new line > > As soon as I enter the return after the \, however, I get: > >     E488: Trailing

Re: Problem with multiline command after :g under Windows

2010-02-17 Thread Andy Wokula
Am 17.02.2010 17:42, schrieb Ben Fritz: On Feb 16, 2:09 pm, Bee<200...@calcentral.com> wrote: I want to insert a line immediately after a number of lines; for this, I'm trying to use :g, something like: :g/pattern/a\ new line As soon as I enter the return after the \, however, I get

Re: Problem with multiline command after :g under Windows

2010-02-18 Thread Ben Fritz
On Feb 17, 12:37 pm, Andy Wokula wrote: > > That doesn't work, the double quotes start a comment. > Oops. That's bitten me before, actually. Shows you how often I find the need to do something like this. Thanks for the correction! -- You received this message from the "vim_use" maillist. For