问题
I'm using Mac Yosemite 10.10.2 and newest macvim, but when I use fullscreen mode, the lines at the top of screen will be black, and if I move my mouse there, it will show the system line.

回答1:
This is a known issue, happened me. A couple of work a rounds are:
- Uncheck "Prefer native full-screen support" in preferences.
- Open a second tab. This repositions the text and view correctly.
There is also a .diff patch on https://code.google.com/p/macvim/issues/detail?id=514#c2
回答2:
A answer from apple.stackexchange.com
I found this post that seems to address that problem.
Full screen MacVim on OS X Yosemite
$ defaults write org.vim.MacVim MMNativeFullScreen 0
It works for my MacVim.
回答3:
Also, if you're opening MacVim from the command line, use open -a MacVim
instead of mvim
. Fullscreen wasn't working for me either (I open from the command line a lot), but a friend shared this little tip and now fullscreen is again functional. Using open -a MacVim
allows you to use native fullscreen, as well.
I'm running MacVim on Yosemite version 10.10.2.
回答4:
Snapshot 77, the latest macvim-dev/macvim release fixes the full screen mode rendering glitch in OS X Yosemite. You can download a pre-compiled executable installer from the release page (thanks to @jcl for giving the links to the new repository and release). Or you can install via brew as described by @greggannicott.
回答5:
Put the following line into ~/.gvimrc (create that file if none exists):
set fu
MacVim will now always start in fullscreen mode!
来源:https://stackoverflow.com/questions/29057835/macvim-in-yosemite-cant-fullscreen