-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow #19
Comments
+1, it's really slow, especially if file contains javascript or coffeescript parts |
+1 |
Two things that slightly helped in speeding things up..
Unfortunately very large .slim files are still uncomfortably slow to work with. |
+1 |
1 similar comment
+1 |
+2 ... Does anyone know why it is so slow? I'd be even willing to learn vimscript and fix it, if I knew where to start |
I just did a little goofing around, and commenting out the additonal syntaxes starting from here to line 41 made it subjectively a lot faster, at least on the file I tested it. At least for me I don't really need syntax highlighting for all of the inline options, except for Ruby. I would even go as far as saying this is a feature, since you shouldn't have 5 different languages in one file anyway. |
+1. Still slow, even for small files. |
+1 Very slow for any file and the master branch as source. |
+1 |
1 similar comment
+1 |
Guys, if nobody has an idea why it is slow we cannot do much. Please help by trying to find out what causes this. |
+1 |
This line is the culprit. syn region slimRuby matchgroup=slimRubyOutputChar start="\s*[=]\==[']\=" skip=",\s*$" end="$" contained contains=@slimRubyTop keepend |
Removing syntastic and replacing |
It's slow because of ruby symbols, here https://github.com/onemanstartup/vim-slim/blob/master/syntax/slim.vim people please try this. Some symbols is messed up a little but it is better than dealing with slow vim. |
The version onemanstartup linked to is much faster for me. |
+1 |
1 similar comment
+1 |
|
https://github.com/onemanstartup/vim-slim is so much faster, omg |
thanks @onemanstartup!!! |
I've been struggling with this too. Editing slim files is painfully slow, even just very simple rails forms that aren't even that long. Simply typing in insert mode had so much latency that it was incredibly annoying. The fork of @onemanstartup works much better, but seems a bit outdated. As far as I understand this plugin loads the actual ruby syntax highlighting for Ruby code. While this may be nice from a feature view point, I think murdering the editor performance is not worth it. Maybe it would be possible to give the option to enable more simple ruby syntax highlighting like in the forked version? I'm not really familiar with vim syntax highlighting, so I'm a bit at a disadvantage here. |
Running MacVim 7.3 (62) with Janus (https://github.com/carlhuda/janus) and vim-slim.
Navigating a 241 line slim file is slow and painful. Disabling vim-slim and having no syntax highlighting speeds things right up.
Anyone else experiencing this?
The text was updated successfully, but these errors were encountered: