Ответ на сообщение «Re: map :%s/ to :%s/\v», 
присланное в 15:12:24 10 июля 2010, Суббота,
отправитель Martin Trautmann:

    noremap :%s/ :%s/\v
works as expected. Are you sure that you input :%s/ fast enough? Maybe defining 
S 
command is better?
    command -nargs=1 -range S execute "<line1>,<line2>s".<q-args>[0].'\v'.
                                              \<q-args>[1:]

Текст сообщения:
> On 10-07-10 10:38, Tony Mechelynck wrote:
> > On 10/07/10 06:52, Martin Trautmann wrote:
> >> On 10-07-09 23:01, Tony Mechelynck wrote:
> >>> On 09/07/10 21:52, Ben Fritz wrote:
> >>>> On Jul 8, 12:48 am, Martin Trautmann<[email protected]> wrote:
> >>>>> I know that
> >>>>> 
> >>>>> :nnoremap / /\v
> >>>>> 
> >>>>> does work, but I do not really understand the map variations.
> >> 
> >> So I tried also
> >> 
> >> :nmap :%s/ :%s/\v
> >> 
> >> But it has no effect. Is there anything I have to escape?
> > 
> > try replacing the backslash by <Bslash>
> 
> No effect.
> 
>       :nnoremap / /\v
> 
> is ok,
> 
>       :nmap :%s/ :%s/<Bslash>v
> 
> is not.
> 
> Does map work for single characters only?
> 
> Thanks,
> Martin

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to