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

53969Re: Using internal-variables in regexp

Expand Messages
  • V.Chandrasekaran
    Oct 3, 2004
    • 0 Attachment
      Yes. I realised that. I should give that a try as well.

      thanks for the help.
      chandra.

      ----- Original Message -----
      From: "Dave Silvia" <dsilvia@...>
      To: "V.Chandrasekaran" <chandrasekaran_v@...>; <vim@...>
      Sent: Sunday, October 03, 2004 4:08 PM
      Subject: RE: Using internal-variables in regexp


      > 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