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

41258Re: [vim] Removing a highlight group

Expand Messages
  • Charles E. Campbell
    Jun 25, 2003
    • 0 Attachment
      On Wed, Jun 25, 2003 at 12:04:07PM -0700, Yegappan Lakshmanan wrote:
      > I want to link the "xyz" group, if the link is not present:
      >
      > if !hlexists("xyz")
      > hi link xyz Search
      > endif
      >
      > As you can see, this logic will fail, if the "xyz" highlight
      > group is only cleared (and not removed).
      ---------------------------------------------------------------------

      Check out the following code; vim hltest.vim :so %

      (gunzip, uudecode)
      ---------------------------------------------------------------------
      begin 600 hltest.vim.gz
      M'XL(`"0`^CX``Y6/RVH",12&]WF*8U8CM.!4NQ%FIU!![$+W)<23"XTI)!E0
      M\>$],\41)70ZN\-_RQ=5^Q%\K'?+[:XPSHL#CAF`PP1V__4K5&#<:E&(^:.O
      M=.?'DU\M1$JA:*\4A(_%8VG\PI7F3=>J^S14%4S@<KF/Y977DHH0,-7!PX1N
      M]'NK6">5C`15>\9H_?8=?CR=FQ=1FA_@4D2$<@X)(_V-ZE+0"92AM:.-*7*&
      M+N(_\J,NWU(P8UM9)@P'I2L=$#WHVM[N'JBW@5#Y?`9*.A2A,7L`I@,!\OD,
      H@+/^N_6V!")-#\9L($8^_Q?&YG.S[(%X'PB1SS]!7`%5@Z,990,```,!
      `
      end
      ---------------------------------------------------------------------

      Regards,
      Chip Campbell

      --
      Charles E Campbell, Jr, PhD _ __ __
      Goddard Space Flight Center / /_/\_\_/ /
      cec@... /_/ \/_//_/
      PGP public key: http://www.erols.com/astronaut/pgp.html
    • Show all 11 messages in this topic