Re: darcs patch: Arbitrary vim search and replace delimiter

2009-12-04 Thread Nicolas Pouillard
Excerpts from Krishna Rajendran's message of Fri Dec 04 14:55:27 +0100 2009: > > On Thu, Dec 3, 2009 at 3:54 PM, Nicolas Pouillard > wrote: > > The Vim documentation says: > > > > Instead of the '/' which surrounds the pattern and replacement string, you > > can use any other single-byte charact

Re: darcs patch: Arbitrary vim search and replace delimiter

2009-12-04 Thread Krishna Rajendran
On Thu, Dec 3, 2009 at 3:54 PM, Nicolas Pouillard wrote: > The Vim documentation says: > > Instead of the '/' which surrounds the pattern and replacement string, you > can use any other single-byte character, but not an alphanumeric character, > '\', '"' or '|'.  This is useful if you want to inc

Re: darcs patch: Arbitrary vim search and replace delimiter

2009-12-03 Thread Nicolas Pouillard
Excerpts from Krishna Rajendran's message of Wed Dec 02 22:49:50 +0100 2009: > > 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

Re: darcs patch: Arbitrary vim search and replace delimiter

2009-12-03 Thread Deniz Dogan
2009/12/2 Krishna Rajendran : > > 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 te

Re: darcs patch: Arbitrary vim search and replace delimiter

2009-12-02 Thread Krishna Rajendran
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

Re: darcs patch: Arbitrary vim search and replace delimiter

2009-12-02 Thread Deniz Dogan
2009/12/2 Krishna Rajendran : > Wed Dec  2 15:54:55 EST 2009  Krishna Rajendran >  * 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 i