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
> <[email protected]> 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 include a '/' in the search
> > pattern or replacement string.  Example: >
> >        :s+/+//+
> 
> Peaking at the vim source, it looks like the space character and tab
> characters are also invalid delimiters. I'm not sure why tab isn't,
> but ':s ' is a command to repeat the last substitution.
> 
> Is it possible to capture these restrictions in a pattern match?
> 
> Would an acceptable, modification of the patch be to just move the two
> patterns down to near the bottom and do the checks for valid
> characters there?

Yes I think it would be an acceptable solution before a deeper change
into this mechanism.

-- 
Nicolas Pouillard
http://nicolaspouillard.fr

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

Reply via email to