gioele / vim-autoswap

Please Vim, stop with these swap file messages. Just switch to the correct window!
Creative Commons Zero v1.0 Universal
115 stars 25 forks source link

HUGE latency (~15s on an 2.3GHz i5 with 16GB RAM) #15

Closed rlue closed 6 years ago

rlue commented 6 years ago

Hi,

I'm experiencing huge latency as vim-autoswap tries to figure out what to do with an already-open file. (As the title states, lag times are approaching 15 seconds.)

What's more, it only works in Terminal.app (not in MacVim or iTerm), but I suppose that's a separate issue (#11?).

gioele commented 6 years ago

Hi @rlue, could you please checkout and use the branch verbose-debug, then paste here the content of /tmp/vim-autoswap.log?

Please use the standard Terminal.app for the moment. We can tackle iTerm support soon after this bug is solved. :)

rlue commented 6 years ago

I hate to be that guy, but I can't reproduce the problem anymore. It's strange — I had definitely tried uninstalling and reinstalling a few days ago, but no luck. Left it uninstalled for a couple days, made a bunch of changes to my vimrc, reinstalled today, and boom, it works. I've even tried reverting to the previous state of my .vim/ directory, but I still can't reproduce it. :\

In any case, it's quite possible it was the result of a conflict with some other plugin (I have about three dozen installed). I'll keep you posted if the problem crops up again.


On an unrelated note, it looks like verbose-debug has not been rebased against the latest version of master yet — I received this error, which was fixed just a week ago:

Error detected while processing function AS_HandleSwapfile[6]..AS_DetectActiveWindow[11]..AS_DetectActiveWindow_Tmux:
line   11:
E119: Not enough arguments for function: substitute
E15: Invalid expression: substitute(tty[0], '\s\+$', '')