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

75914Re: Matching JUST the nth occurence of a text in a line

Expand Messages
  • A.J.Mechelynck
    Dec 1, 2006
    • 0 Attachment
      Chuck Mason wrote:
      > Am I the only one amused that /home<CR>n does nearly the same thing?
      > I mean, I suppose you could be doing operations on your search but
      > couldn't you equally just "ayw and do stuff there? Besides \{-}\zs
      > takes too long to type :)

      To go to the 2nd occurrence from the cursor, you can use

      2/home

      (or 2/\<home\> if you want to exclude "homeless" etc.) but all occurrences
      will be highlighted.


      Best regards,
      Tony.
    • Show all 20 messages in this topic