On Fri, Oct 26, 2012 at 3:24 PM, Marcin Szamotulski wrote:
> On 15:11 Fri 26 Oct , Karthick Gururaj wrote:
>> On Thu, Oct 25, 2012 at 10:02 AM, Karthick Gururaj
>> wrote:
>> > Hello,
>> >
>> > On the input pattern:
>> > ,,X
>> >
>> > ..the following substitute command,
>> >%s;\(^\|,\)\ze\
On 15:11 Fri 26 Oct , Karthick Gururaj wrote:
> On Thu, Oct 25, 2012 at 10:02 AM, Karthick Gururaj
> wrote:
> > Hello,
> >
> > On the input pattern:
> > ,,X
> >
> > ..the following substitute command,
> >%s;\(^\|,\)\ze\(,\|X\);\1N;gc
> >
> > ..changes it to (type 'y' for all prompts):
> >
On Thu, Oct 25, 2012 at 10:02 AM, Karthick Gururaj
wrote:
> Hello,
>
> On the input pattern:
> ,,X
>
> ..the following substitute command,
>%s;\(^\|,\)\ze\(,\|X\);\1N;gc
>
> ..changes it to (type 'y' for all prompts):
> N,N,NX
>
> As expected. But if you type 'a' instead (for replace all), you