Tim Chase wrote:
[...]
You can read about ":s"ubstitute commands and the various
flags at

  :help :s
  :help :s_flags

This is a jet-fuel-powered version of search-and-replace
that one finds in most editors.  The {pattern} portion has
an incredible degree of complexity for finding precisely the
match you intend, including context, repetitions, and the
like.  Far too much erudition can be found at

  :help pattern

far too much indeed, but there is a nice summary at

        :help pattern-overview


There are also tricks that can be done in the replacement
portion as well:

  :help sub-replace-special


It's prob. more than you want/need at the moment, but after
tapping the power of vim's search&replace, it bugs me to use
s&r in any other app.
[...]


Best regards,
Tony.
--
There was a young man of St. John's
Who wanted to bugger the swans.
        But the loyal hall porter
        Said, "Pray take my daughter!
Those birds are reserved for the dons."

Reply via email to