Reply to message «Re: visual block search and replace», sent 01:33:40 15 July 2011, Friday by Christian Brabandt:
> According to the help \%V is only available, if Vim is compiled as small > built (or larger), cause it needs +visual. I don't see this in the help. If you go to regexp.c and search for `case 'V'' you will see that it is not surrounded by #ifdef. So you can disable visual mode, but you can't disable \%V atom (maybe it will just always match). Original message: > Hi Charles! > > On Do, 14 Jul 2011, Charles Campbell wrote: > > >(though it is not related to the issue: s/\%V504\503 should not show > > >«Invalid character after \%»). I don't see any way to disable \%V > > >neither at compile time nor using some option, so maybe you have just > > >typed \%v (note the case) instead? > > > > > >I guess it may also appear due to too old vim. According to the help > > >(:h new- items-7) \%V was introduced in vim-7.0, so if you have older > > >vim it won't work. > > > > As written, I'd expect that vim would issue two messages for the > > given substitute command: > > > > E65: Illegal back reference > > E476: Invalid command > > > > so either a) the pattern isn't given correctly, or b) ZyX is right > > and Premdas is using a pre-v7.0 vim. I suspect it was E71. > > According to the help \%V is only available, if Vim is compiled as small > built (or larger), cause it needs +visual. But even my tiny built has > +visual available. And then I get the E65 error message (because of the > \503) > > But I suspect, that either the help file is wrong regarding the > +/-visual feature or the is an error with the configure script (or my > built went wrong). > > regards, > Christian
signature.asc
Description: This is a digitally signed message part.
