Loading ...
Sorry, an error occurred while loading the content.

Re: change case on multiple words

Expand Messages
  • zzapper
    A.J.Mechelynck wrote in ... The other advantage I suppose in using 0 is that it makes your regexp more visible and fits in
    Message 1 of 8 , Nov 29, 2006
    • 0 Attachment
      "A.J.Mechelynck" <antoine.mechelynck@...> wrote in
      news:456CF52E.40607@...:

      > 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
    Your message has been successfully submitted and would be delivered to recipients shortly.