clickable.vim
clickable.vim copied to clipboard
Conflicts with salt-vim plugin
Steps to reproduce:
- Install https://github.com/saltstack/salt-vim
- Open salt state file:
vim /tmp/s.sls - Start typing:
salt://ssssssssssssssssssssss... - See how vim eats all CPU after some "s".
Salt-vim plugin works fine without clickable plugin, I think the problem is in latter plugin.
the http and file matching pattern used by clickable.vim now are too long (though I optimzed them several times). Maybe I should let them not matching in all files.
@Rykka I don't think that the problem is in your regex, because if I try to type the same address in the plain text file, it works fine.
ok, I will check it.
Ouch, I hit this one too. I'm not sure what changed in my environment to bring this about, but trying to edit an existing .sls file of any size causes vim to use 100% cpu (eg hang) until killed. Disabling clickable is definitely a solution for now.
clickable has hacked syntax and seems the syntax highlighting of url/file matching is overkilling the memory...
I have not got a better solution for this currently.