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

53968RE: Using internal-variables in regexp

Expand Messages
  • Dave Silvia
    Oct 3, 2004
      With PatHilite() the highlighting stays with the text, not the line number.

      FYI,
      Dave S.

      *** -----Original Message-----
      *** From: V.Chandrasekaran [mailto:chandrasekaran_v@...]
      *** Sent: Sunday, October 03, 2004 1:25 PM
      *** To: vim@...
      *** Subject: Re: Using internal-variables in regexp
      ***
      ***
      *** This works great. Thanks. However, if the line number changes
      *** due to edits
      *** above this highlighted line, the highlighted line changes too.
      *** But this is
      *** ok.
      ***
      *** thanks,
      *** -chandra.
      ***
      *** #>>>>>>>>>>>>
      *** #Look one item lower in docs.
      *** #
      *** #Get number of line and highlight line with \%<number>l
      *** #It should be faster and NULL problems with escaping special
      *** #characters.
      *** #
      *** #:let thisline=line(".")
      *** #:exe 'match MyLine /\%'.thisline.'l.*/'
      *** #
      *** #m.
      *** #>>>>>>>>>>>
    • Show all 19 messages in this topic