"A.J.Mechelynck" <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]: 

> zzapper wrote:
> [...]
>> Tony
>> is \0 always same as & ?
> 
> yes, if 'magic' is TRUE, see ":help sub-replace-special". If ever you
> set 'nomagic' (not recommended), then & will replace with an &
> character while \0 still means the whole matched pattern.
> 
> Tony.
The other advantage I suppose in using \0 is that it makes your regexp more 
visible and fits in better with the memory syntax of \1..\9
-- 
zzapper
Best of VimTips
http://www.vim.org/tips/tip.php?tip_id=305

Reply via email to