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

Easytags hangs when editing vimscript (files with the extension .local or .vim) #41

Open armw4 opened 11 years ago

armw4 commented 11 years ago

Anytime I open a file where ft=vim, easytags hangs after I stop typing. This of course would trigger the curshold event that's referenced in the documentation. It seems to always happen around that time. I usually have to switch modes to trigger it; for example:

  1. Switch to insert mode
  2. Press carriage return a few types and type so random characters
  3. Escape back out to normal mode
  4. Wait a few seconds
  5. My instance of vim hangs and renders the current tab in my terminal immobile

Other times I just have to open up some plugin with a .vim extension or .local extension and wait around. Vim eventually hangs.

I'm not sure if .local natively triggers the vim filetype. A plugin could be manually setting ft to vim on some event like:

BufEnter *.local set ft=vim

In any case, once ft=vim, trouble occurs.

It never takes more than about half a minute to reproduce; hangs within seconds.

What makes me so sure it's related to easytags?

Because when I disable the plugin, everything seems to work fine. Once I reenable it, things go haywire again.

armw4 commented 11 years ago

Can't seem to reproduce this on a new Mac. Maybe it's related to having a very large tag file as I did on another Macbook.

kshenoy commented 11 years ago

Hi, I'm facing a similar issue. And FWIW it doesn't seem to be affected by the tag files present. The reason I'm saying this is I deleted whatever tag files are present both global and local but whenever I open my .vimrc, it hangs and crashes.

Secondly, I have a tags file for STL which is 1.7MB in size but all cpp files open up without a hiccup.

Please let me know in case you need any more information.

othane commented 10 years ago

I too am getting this issue, and I also have a massive tags files. I think disabling easytags_on_cursorhold fixes the issue: let g:easytags_on_cursorhold = 0