macOS high sierra + lastest release = black screen on fullscreen
macOS high sierra macvim snapshot 138
screen goes (almost) black, only cursor, tabs and scroller are visible. on moving cursor or editing text, screen is gradually drawn back.
how to reproduce: open macvim go fullscreen switch to another desktop switch back to macvim
MMUseCGLayerAlways fixed black patches in macOS full screen when multiple tabs are open or view is split. Both User Core Text renderer and Prefer native full-screen support are enabled.
Tried commenting out the entire vimrc but unfortunately, no luck on my end. Also tried removing python2 and running a clean install but no dice.
autocmd FocusLost * redraw! works for me
Here's a minimal repro with a stock MacVim install (no plugins or custom vimrc). This is using macOS 10.13.5, the latest MacVim snapshot (149), with core text and native full-screen enabled, and without changing MMUseCGLayerAlways from its default. I get the same behavior on the built-in retina display, and a non-retina external display.
Start MacVim, enter full-screen, create a new window split, then either switch macOS spaces or enter mission control, and return to the MacVim space. For me it shows a black screen. Note that I don't see the black screen if I don't create a window split, or if I create the window split before entering full-screen. Calling :redraw! fixes rendering, but creating a new window and switching spaces surfaces the issue again.
Running defaults write org.vim.MacVim MMUseCGLayerAlways -bool YES fixes the black screen but causes other rendering issues as reported in previous comments.
Same black fullscreen issue on the new macOS Mojave (10.14) with macVim 8.1.280:
- Open macVim.
- Go fullscreen.
- Open a new tab.
- Switch to another screen.
- Switch back to macVim.
Note that you have to open a new tab in fullscreen mode to trigger the issue (tabs open in normal mode do no harm).
I've had this issue +1 also MacOS Mojave 10.14
I bought a new MacBook Pro 15 inches last week and installed macvim on mac latest os but it is acting weird like mvim screen is blinking and sometimes goes completely black image and I tried uninstall and installed several times but the issue is not resolved.
Could someone please help me how to fix
Thanks
@mereddy22 I believe that's #751. We are currently trying to fix it and there is a pull request under review right now and should be merged in soon.
How are you installing MacVim? If you use the official release from this site it should not have the issue (since it's still being built with High Sierra SDKs). Or are you using it from Homebrew?
@ychin using Homebrew I installed macvim on my system.
I need ASAP to use mvim on my system.
@mereddy22 If you need to use MacVim ASAP I recommend downloading an official build from our releases which should still work on Mojave.
Otherwise, you could use the Apple system provided Vim for now.
The proper fix should be committed in a week or so.
Could a build be made available that includes these fixes? Does homebrew include them?
Homebrew build includes that already. For the binary snapshot releases here on Github I think I would prefer to make a release containing the fix for all the Mojave issue as well, unless that drags on too much.