On 23 April 2010 00:04, roger peppe wrote:
> another way (and how i would usually do it):
>
> ,x g/0\.00/i/\n/
>
Oh yes, that's probably the best.+- is really unnecessary in this case.
Thanks
R
another way (and how i would usually do it):
,x g/0\.00/i/\n/
On 22 April 2010 18:32, Rudolf Sykora wrote:
> Hello,
>
> I have a file in which I wanted to insert an empty line just before
> any line on which a string, say '0.00' is present.
>
> My attempts to do it this way:
> ,x/0.00/+-i/\n/
>
On 22 April 2010 21:28, yy wrote:
> You would need to group your last commands (think carefuly about it):
>
> ,x/0.00/{+-i/\n/
> }
>
> but then you would have to type a bit more.
I don't know how it could happen, by the problem I had with
,x/0.00/+-i/\n/
is that it should have been
,x/0\.00/+-i/\
2010/4/22 Rudolf Sykora :
> On 22 April 2010 20:24, yy wrote:
>> Edit ,x/^.*0\.00/i/\n/
>
> The same answer as to Rob Pike. Your solution is ok, thanks. But I
> still can't see what's wrong with mine... :(
> R
You would need to group your last commands (think carefuly about it):
,x/0.00/{+-i/\n/
On 22 April 2010 20:24, yy wrote:
> Edit ,x/^.*0\.00/i/\n/
The same answer as to Rob Pike. Your solution is ok, thanks. But I
still can't see what's wrong with mine... :(
R
On 22 April 2010 20:21, Rob Pike wrote:
> ,x/0\.00/-a/\n/
>
> -rob
>
>
ok. this works. But what is wrong with mine?!
thanks!
Ruda
2010/4/22 Rudolf Sykora :
> Hello,
>
> I have a file in which I wanted to insert an empty line just before
> any line on which a string, say '0.00' is present.
>
Edit ,x/^.*0\.00/i/\n/
--
- yiyus || JGL . 4l77.com
,x/0\.00/-a/\n/
-rob
Hello,
I have a file in which I wanted to insert an empty line just before
any line on which a string, say '0.00' is present.
My attempts to do it this way:
,x/0.00/+-i/\n/
or similarly were not succesful.
I am not sure where the problem is exactly. (Only have some feeling
about it, but couldn't