-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
buffers cycle and flicker for ages when changing buffers after longer period of use #2502
Comments
Hm
This is basically just
This is expected to be expansive. Also an internal vim command. I have always wanted to profile Vim to find out what is so expansive and how to fix it, but haven't come to that yet :( In any case, since you seem to be using a quit recent Vim version, try enabling the Vim9 Script version:
That might considerably improve the speed of VimScript. |
Thanks for checking! I'll try the experimental setting and see. What I find strange is the amount of calls made, or is that normal? 56 calls for a single buffer switch? Also it seems to me that sometimes one way is ok, then going back is slow. |
note sure. In general evaluation of the statusline will happen very often, for the tabline it may not be that often the case. In that case you may try to simply change the following line:
and simply |
Are any of you using I really do want to keep using Any ideas? |
environment
if you are using terminal:
airline config:
actual behavior
It is very hard to pin down as it doesn't happen on a clean startup, I have to work for a while (this is why I haven't yet tested with a minimal vimrc). But after a while doing a simple
:b#
will take ages, as if airline were cycling through the buffers a million times before arriving. When I got tothis stage again I used the info here: https://stackoverflow.com/questions/12213597/how-to-see-which-plugins-are-making-vim-slow/12216578#12216578 to profile what is happening in a single:b#
. It took around 2 seconds to change a buffer.Could be related to #2435
expected behavior
Buffer switching is instantaneous.
screen shot (if possible)
This is from an earlier happening but you can see the idea:
Kazam_screencast_00001.mp4
The text was updated successfully, but these errors were encountered: