You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot reproduce this on latest; what version of MacVim are you using and does it still happen if you use the latest screenshot? Does it still happen if you run without your .vimrc or plugins loaded?
Indeed it is ok when no plugin load. After further test, I've found the FileType autocmd cause this issue. I profile functions and found: My plugin Tagbar runs 200ms when switch to new file.
so now I can reproduce this issue without .vimrc or plugins loaded, just do the following cmd:
filetype on
autocmd FileType * sleep 20ms " the longer the issue more obvious
take path/to/file
I don't think there's anything we can do about this.
MacVim has to wait for vim to tell it how to draw a given buffer. Vim may need to process autocommands and file type plugins in order to do that, so MacVim can't draw until those are completed. If your autocommands take too long, you will see visual artifacts and delays because MacVim has to simply wait for the information to come in.
As the gif shows, when open a new buffer in a new tab, the screen flicker with black.
version is OS X 10.11, MacVim 101 release.
The text was updated successfully, but these errors were encountered: