Skip to content
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

Open
seanabrahams opened this issue Mar 23, 2012 · 23 comments
Open

Slow #19

seanabrahams opened this issue Mar 23, 2012 · 23 comments

Comments

@seanabrahams
Copy link

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?

@maxprokopiev
Copy link

+1, it's really slow, especially if file contains javascript or coffeescript parts

@shilov
Copy link

shilov commented Apr 17, 2012

+1

@shilov
Copy link

shilov commented May 30, 2012

Two things that slightly helped in speeding things up..

  • Enable experimental renderer in MacVim preferences
  • If you have syntax-folding enabled, switch to indent-based folding

Unfortunately very large .slim files are still uncomfortably slow to work with.

@redeemedfadi
Copy link

+1

1 similar comment
@rous-gg
Copy link

rous-gg commented Sep 13, 2012

+1

@darthdeus
Copy link
Contributor

+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 :shipit:

@darthdeus
Copy link
Contributor

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.

ghost pushed a commit that referenced this issue Oct 9, 2012
@nicholaides
Copy link

+1. Still slow, even for small files.

@skyeagle
Copy link

+1 Very slow for any file and the master branch as source.

@jgarber
Copy link

jgarber commented Sep 30, 2013

+1

1 similar comment
@mattmcmanus
Copy link

+1

@minad
Copy link
Member

minad commented Oct 1, 2013

Guys, if nobody has an idea why it is slow we cannot do much. Please help by trying to find out what causes this.

@oraclebill
Copy link

+1

@skyeagle
Copy link

skyeagle commented Oct 5, 2013

This line is the culprit.

syn region slimRuby matchgroup=slimRubyOutputChar start="\s*[=]\==[']\=" skip=",\s*$" end="$" contained contains=@slimRubyTop keepend

@skyeagle
Copy link

Removing syntastic and replacing powerline with vim-airline makes it much faster then before.

@onemanstartup
Copy link

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.

@arjun810
Copy link

The version onemanstartup linked to is much faster for me.

@chalmagean
Copy link

+1

1 similar comment
@itmammoth
Copy link

+1

@lingceng
Copy link

set synmaxcol=100
Make it much faster.

@evmorov
Copy link

evmorov commented May 3, 2017

https://github.com/onemanstartup/vim-slim is so much faster, omg

@evmorov evmorov mentioned this issue Jul 7, 2017
@kleinjm
Copy link

kleinjm commented Feb 21, 2018

thanks @onemanstartup!!!

@strayer
Copy link

strayer commented Apr 6, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests