-
Notifications
You must be signed in to change notification settings - Fork 42
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
Heavy cursor lag in HTML files with embedded JS #46
Comments
Is there an option to just turn off the plugin for html files? That would be fantastic. |
I will try to fix this |
I've noticed heavy cursor lag (and 100% CPU usage) in ES6 files as well. As I disabled yajs, it was performant again. CPU: Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz UPDATE:
I will investigate further. |
@oliversong I can't fix this now.
You could try disable these two plugin to see is it perform better. |
@susu Could you provide sample file. |
@othree I did have vim-coffee-script, but disabling it didn't help. |
I rewrite some rule to avoid use backward lookup. |
Unfortunately seems like it didn't change much. Still significant lag on my |
I am seeing this as well. I tried disabling |
May I have your Vim version, hardware/OS info. And one more thing you can try is neovim. 2015-09-06 22:49 GMT+08:00 Steven Loria notifications@github.com:
OOO |
yajs has major cursor lag in HTML/mako files with embedded JS (see othree/yajs.vim#46)
I am using Macvim on a Macbook Air (2013; 8 GB memory) with OSX Yosemite. Here is the output of
|
I see the problem both in GUI Macvim and terminal vim. Performance is better on neovim. However, I use both GUI vim and termvim, so I'm not quite ready to make the complete switch. Also, I'd like my vimrc to work on systems that don't have neovim. |
@sloria If your case are also embed minimized js in html. |
Im having the same problem, has anyone else found a solution ? |
One year later this problem is still relevant. In .vue files, where it is the norm for html, javascript and css to coexist the plugin makes development impossible. @othree Any leads on this? |
Also (still) experiencing this problem. Once the plugin is loaded for whatever reason vim becomes unusable |
@mixedCase @othree Is there any updates on this? I too am starting to have problems with .vue files as well. Although, what is strange though is that in .html files with embedded js I have no problems. In fact, copy pasting the contents of .vue -> .html doesn't give me lag. This leads me to believe it could possibly be a conflict with However, I like this plugin a lot compared to the rest. Until the performance gets really bad, I'll still use it. But a fix would be great. |
Any And which vue-vim are you using? https://github.com/darthmall/vim-vue or https://github.com/posva/vim-vue |
I am using Loading only
Move around and you'll notice that in a .html, there is 0 drop in performance, however in a .vue it is noticeable.
|
I use syntime to check the performance. Vue: HMTL: |
@othree Very helpful information. I noticed my numbers were the same as well and I have figured out what my problem is. It seems that relative line numbers is the culprit. After If I figure out how to fix the lag with relative line numbers on, then I will update this post for future reference. For now, thanks for the help and great plugin, I really appreciate it. |
For example, this segment.io script file:
segment.html
:I deactivated my plugins one by one to figure out what the source of lag was- ended up with yajs. Once I delete the javascript snippet from the html (if it were included in a larger file), the cursor is immediately performant again.
The text was updated successfully, but these errors were encountered: