vim-easytags icon indicating copy to clipboard operation
vim-easytags copied to clipboard

Undo for `:HighlightTags`

Open blueyed opened this issue 11 years ago • 4 comments

:HighlightTags may cause Vim to become very slow. There should be a way to undo it.

blueyed avatar Oct 16 '14 18:10 blueyed

Something like a :ClearTags command? Would that command disable and clear the automatic syntax highlighting of tags, or just one of the two? For a single buffer or all of Vim?

xolox avatar Nov 11 '14 22:11 xolox

It should undo what :HighlightTags did, and therefore act on the current file / buffer.

:ClearTags! might then act on every (affected) buffer maybe.

blueyed avatar Nov 11 '14 22:11 blueyed

Although this thread is quite old, maybe somebody is interested in this solution/workaround: :syntax on seems to do the trick, but it affects all buffers.

I set an alias for it in my .vimrc like that: command HighlightTagsOff syntax on (I prefer :HighlightTagsOff over :ClearTags, because Tab-Completion offers both, the ON- and OFF-variant.)

hcgraf avatar Nov 30 '15 13:11 hcgraf

Thanks!

I prefer :HighlightTagsOff over :ClearTags

:+1:

blueyed avatar Dec 01 '15 00:12 blueyed