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

Re: Variable values in substitution

Expand Messages
  • Benji Fisher
    ... [snip] ... You are welcome. After typing :help | , instead of hitting , try (unless you have some other value set for wildchar ). The second
    Message 1 of 4 , Jan 1, 2001
    • 0 Attachment
      "Paul Y. Peng" wrote:
      >
      > Benji Fisher wrote:
      > >
      [snip]
      > >
      > > :let n = 0
      > > :g/abc/let n = n+1 | execute "s/abc/ab" . n
      >
      > Thanks for these solutions. They work for me. I actually thought
      > about the second solution, but I didn't know how to use more than
      > one command in :global. Even now, if I type :help |, I got a help
      > page about "bar", which doesn't seem to be relevant to the use of
      > "|" above:(
      >
      > Thank you Benji,
      > Paul.

      You are welcome. After typing ":help |", instead of hitting <CR>,
      try <Tab> (unless you have some other value set for 'wildchar'). The
      second option listed is ":bar", and :help :bar takes you to the right
      page.

      --Benji Fisher
    Your message has been successfully submitted and would be delivered to recipients shortly.