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/<username>/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/<XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX>/app.org.vim.MacVim.playlist
/Users/<username>/Library/Caches/org.vim.MacVim
/Users/<username>/Library/Saved\ Application\ State/org.vim.MacVim.savedState
If you mean that Unicode characters don't render correctly try disable the "Use Core Text renderer" option in the "Preferences… → Advanced" menu and restart MacVim. (source 1, source 2)
I have a similar problem, in which emoji charachters are rendered to big, but as of yet I don't know how to fix it.
Best Answer
Using
:!mvim filename
(or!gvim filename
) works for me, but I have the commands set up in /usr/local/bin (and /usr/local/bin in PATH), and I don't remember the installation instructions for where to get the script to put there. If you don't have that, try:!open -a MacVim filename
, but this only works on existing files.Also you can open a new window with ⌘N or
:macaction newWindow:
, but that won't let you specify a filename, and the working directory will be your home directory.