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

55071RE: preserving folding during :TOhtml?

Expand Messages
  • Hari Krishna Dara
    Nov 22, 2004
    • 0 Attachment
      On Mon, 22 Nov 2004 at 7:15pm, David Fishburn wrote:

      > > >
      > > > Functions for syntax and highlight groups already existed.
      > > >
      > >
      > > Sorry for not being clear, what I was talking about the
      > > highlighting shown by using :match command. How do I know
      > > that a (line,col) is being shown with a specific highlighting
      > > group? Once I can determine this, I can make use of the
      > > functions synIDattr() and synIDtrans() to obtain display attributes.
      >
      > Hmm, my plugin might already do what you want:
      > " SrchRplcHiGrp - Search and replace based on a syntax highlight group
      > " http://www.vim.org/script.php?script_id=848
      >
      > When you place you cursor on a character (highlighted the correct colour)
      > run:
      > :SRChooseHiGrp[!]
      >
      > One chooses the group, the other (with the !) chooses the base group.
      >
      > Then you can perform a search and replace based on the highlight group name.
      >
      > This might get you a bit closer anyway.
      >
      > Dave
      >

      Thanks, I will give it a try. I presume this doesn't work for searching
      under diff highlighting, because of the lack of Vim functions, but just
      checking.

      --
      Thanks,
      Hari



      __________________________________
      Do you Yahoo!?
      The all-new My Yahoo! - Get yours free!
      http://my.yahoo.com
    • Show all 11 messages in this topic