Annoying blank window in MacVim - how to get rid of it? Whenever I start MacVim, a window opens that is not a buffer and doesn't seem to do anything - it doesn't react to any input at all, even - and that is the annoying part - the Mac OS X close button doesn't do anything. The window is just there and silently stares at me.



I already tried installing MacVim from scratch and completely deleting all .vim* configs, to no avail.

Any ideas?
Seeing how you have tried to delete all the normal preference files relating to vim settings, ~/.vimrc, ~/.vim there is one more thing to try and that is the Mac Os App specific preference files for MacVim. One good candidate is the MacVim plist file named org.vim.MacVim.plist. A corrupted version of that file may be causing the random window to appear.

First thing quit MacVim.

Then delete the MacVim related plist files.

You can use the terminal and the following command to help find the MacVim preferences related files. find / -name ".vim."

The org.vim.MacVim.plist file should be located at:

/Users/&lt;username&gt;/Library/Preferences/


You might also want to delete:
org.vim.MacVim.LSSharedFileList.plist

If the extra 'dead' window problem still exists when you reopen MacVim, then try deleting additionally some more files, this time some Cache and Lion Saved State Related files, along with other related files. Again Quit MacVim before deletion of any of the files, to prevent re-saving of the corrupted state of the program.

I observed the following other MacVim related files in the find search results, that you can try deletlting to attempt to resolve the issue:

/private/var/db/BootCaches/&lt;XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&gt;/app.org.vim.MacVim.playlist

/Users/&lt;username&gt;/Library/Caches/org.vim.MacVim

/Users/&lt;username&gt;/Library/Saved\ Application\ State/org.vim.MacVim.savedState