preservim / tagbar

Vim plugin that displays tags in a window, ordered by scope
https://preservim.github.io/tagbar
Other
6.1k stars 485 forks source link

Clear old TagbarCleanupAutoCmds before redefining #791

Closed mvanderkamp closed 2 years ago

mvanderkamp commented 2 years ago

This fixes a performance issue where, during long editing sessions, tagbar was causing buffer deletes/wipeouts to take longer and longer, owing to the ever longer list of autocommands tagbar would execute. This could be a particular issue when heavily using other plugins that clean up their buffers when finished with them.