clickable.vim icon indicating copy to clipboard operation
clickable.vim copied to clipboard

Conflicts with salt-vim plugin

Open rominf opened this issue 10 years ago • 5 comments

Steps to reproduce:

  1. Install https://github.com/saltstack/salt-vim
  2. Open salt state file: vim /tmp/s.sls
  3. Start typing: salt://ssssssssssssssssssssss...
  4. 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.

rominf avatar Nov 08 '14 14:11 rominf

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.

gu-fan avatar Nov 08 '14 15:11 gu-fan

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

rominf avatar Nov 08 '14 15:11 rominf

ok, I will check it.

gu-fan avatar Nov 08 '14 15:11 gu-fan

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.

davidjb avatar May 22 '15 02:05 davidjb

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.

gu-fan avatar May 22 '15 20:05 gu-fan