Hi there everyone,
Many thanks for the explanation, it's much clearer now.
2014-04-01 9:24 GMT+02:00 Mark van Atten :
> On Mon, Mar 31, 2014 at 5:54 PM, Daniel Peyrolon
> wrote:
> >> Edit , x/^[^ ]+[ ]*[^(]*\([^)]*\)[ ]*\{[ ]*\n/ s/[ ]*\{[ ]*\n/\n\{/g
> >
> > So, it was simply a matter of chan
On Mon, Mar 31, 2014 at 5:54 PM, Daniel Peyrolon wrote:
>> Edit , x/^[^ ]+[ ]*[^(]*\([^)]*\)[ ]*\{[ ]*\n/ s/[ ]*\{[ ]*\n/\n\{/g
>
> So, it was simply a matter of changing "$" for "\n" at the x command!
Yes. (In the version I gave, the replacement of the second $, the one
in the s command, by \n w
Hi,
2014-03-31 17:54 Daniel Peyrolon :
> > Edit , x/^[^ ]+[ ]*[^(]*\([^)]*\)[ ]*\{[ ]*\n/ s/[ ]*\{[ ]*\n/\n\{/g
>
> So, it was simply a matter of changing "$" for "\n" at the x command!
> How come my command didn't work?
> It really should work with the "$", shouldn't it?
>
> Or even without th
> Edit , x/^[^ ]+[ ]*[^(]*\([^)]*\)[ ]*\{[ ]*\n/ s/[ ]*\{[ ]*\n/\n\{/g
So, it was simply a matter of changing "$" for "\n" at the x command!
How come my command didn't work?
It really should work with the "$", shouldn't it?
Or even without the \n or the $, since the regexp already matched until t
> > \ before { is not necesary.
>
> Don't know how I got that one in there; thanks for catching it!
it was in the original.
- erik
> \ before { is not necesary.
Don't know how I got that one in there; thanks for catching it!
Mark.
On Mon Mar 31 11:37:51 EDT 2014, vanattenm...@gmail.com wrote:
> Edit , x/^[^ ]+[ ]*[^(]*\([^)]*\)[ ]*\{[ ]*\n/ s/[ ]*\{[ ]*\n/\n\{/g
\ before { is not necesary.
- erik
Edit , x/^[^ ]+[ ]*[^(]*\([^)]*\)[ ]*\{[ ]*\n/ s/[ ]*\{[ ]*\n/\n\{/g
Mark.
Hi there,
I'm using p9p's acme, and I would like to take a piece of code and change,
for example this:
int main(int argc, char *argv[]) {
For this:
int main(int argc, char *argv[])
{
So, for doing that, I thought about using some regexps and the Edit command.
I would like to work with some ge