gko / vim-coloresque

css/less/sass/html color preview for vim
352 stars 63 forks source link

It causes terrible lag in Vim #15

Closed Netherdrake closed 11 years ago

Netherdrake commented 11 years ago

Hello,

I'm the guy from SO: http://stackoverflow.com/questions/19030290/syntax-highlighting-causes-terrible-lag-in-vim

There are 2 big issues with your plugin still. 1.) Lines which are colored do lag terribly still. 2.) Some 3rd party plugins that do some coloring, eg. Gundo, start lagging terribly as well when your plugin is enabled.

I really like what your plugin does, but it just breaks Vim too hard atm. I'll be happy to test it out for you, unfortunately I can't help much, as I don't know vimL.

gko commented 11 years ago

Can you send me your vimrc to gor.konstantin@gmail.com

Netherdrake commented 11 years ago

https://bitbucket.org/furion/dotfiles/

gko commented 11 years ago

I tried your setup with 7.3 on Ubuntu. Didn't see any lags. Will try on vim 7.4. Can you specify which vim/OS do you use?

Netherdrake commented 11 years ago

http://pastebin.com/4Ku6g2aH

Also, same issues on OSX.

gko commented 11 years ago

Hi,

Can you test the fix?

1) add bundle to your vimrc: Bundle 'https://github.com/gorodinskiy/vim-coloresque.git'

2) then delete old one if you had it: rm -rf ~/.vim/bundle/vim-coloresque/

3) clone the fixed istead: git clone --branch testing https://github.com/gorodinskiy/vim-coloresque.git ~/.vim/bundle/vim-coloresque

Netherdrake commented 11 years ago

The issue n.1 is fixed, the line lag is gone. However, the issue n.2 still persists.

gko commented 11 years ago

I'm not using gundo myself. Can you elaborate on what exactly should I look for? Let's say I open up a file with lots of colors in it and I start changing it, then I do :GundoShow? Is it gundo itself that should be slow or the file that I was editing?

Netherdrake commented 11 years ago

Just load up my vimrc, open some file, do some changes. Than open Gundo with F4, and j/k scroll between changes to recreate the issue.

gko commented 11 years ago

issue №2 should be now fixed. Can you update testing and check?

Netherdrake commented 11 years ago

It mostly works for me. Its still funky when theres lots of changes listed in Gundo, scrolling is kind of wacked (j/k holding). But the terrible lag is gone. Thanks.

gko commented 11 years ago

Ok, I'll close the bug but will try to tweak things.

gko commented 11 years ago

Also, could you please update the stackoverflow question, so that it doesn't put off people.(that issue is resolved)