Thanks for pointing this out. I just noticed that ghc warnings catch
that issue too. I should have paid closer attention.

While sed can use arbitrary characters in a substitution, vim cannot
use letters, and possibly other characters.

Using / can be tedious when you have a lot of slashes in your pattern
than need escaping. In Yi, there doesn't seem to be any way to escape
the delimiter at the moment, so alternate characters are even more
useful.

Now to think of a safer way to accomplish this.



On Wed, Dec 2, 2009 at 4:31 PM, Deniz Dogan <[email protected]> wrote:
>
> 2009/12/2 Krishna Rajendran <[email protected]>:
>> Wed Dec  2 15:54:55 EST 2009  Krishna Rajendran <[email protected]>
>>  * Arbitrary vim search and replace delimiter
>>  For example, the following line can be used:
>>        :s,findtext,replacetext,g
>>  instead of:
>>        :s/findtext/replacetext/g
>>
>> >
>>
>
> The pattern matching that is done in this patch unfortunately breaks
> other commands that are pattern matched on later in the function
> definition, e.g. "suspend".
>
> --
> Deniz Dogan
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to