xolox / vim-easytags

Automated tag file generation and syntax highlighting of tags in Vim
http://peterodding.com/code/vim/easytags/
1.01k stars 109 forks source link

Undo for `:HighlightTags` #99

Open blueyed opened 9 years ago

blueyed commented 9 years ago

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

xolox commented 9 years ago

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?

blueyed commented 9 years ago

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

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

hcgraf commented 8 years ago

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.)

blueyed commented 8 years ago

Thanks!

I prefer :HighlightTagsOff over :ClearTags

:+1: