Reply to message «visual block search and replace», 
sent 13:20:28 14 July 2011, Thursday
by subith86:

> :s/\%V504\503/g
I guess you meant
  :'<,'>s/\%V504/503/g
(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.

Original message:
> Hi all,
> 
> I'm trying to do a search and replace inside a visual block as shown below
> 
> :s/\%V504\503/g
> 
> but it gives an error - Invalid character after \%
> 
> Obviously, this happens in search too.
> /\%V504
> 
> But the same works in another machine. So I doubt I'm missing some
> configuration in VIM or some VIM package needs to be installed. Please
> help.
> 
> --
> Regards,
> Subith Premdas
> 
> --
> View this message in context:
> http://vim.1045645.n5.nabble.com/visual-block-search-and-replace-tp4585995
> p4585995.html Sent from the Vim - General mailing list archive at
> Nabble.com.

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

Reply via email to