Re: :substitute behaves differently with and without individual substitute confirmation

2012-10-27 Thread Karthick Gururaj
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\

Re: :substitute behaves differently with and without individual substitute confirmation

2012-10-26 Thread Marcin Szamotulski
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): > >

Re: :substitute behaves differently with and without individual substitute confirmation

2012-10-26 Thread Karthick Gururaj
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