Hot answers tagged macvim
This might be obvious already, but if you change MacVim's preferences item "After last window closes:" to "Hide MacVim", then I think you'll get something close to the behavior you want: when you start mvim from the terminal, and then finish a file, focus will return to the Terminal as long as you don't have other MacVim windows open. At least, this gets me ...
In my case it was good enough to comment out the fullscreen part of the extended.vim config file found under ~/.vim_runtime/vimrcs/extended.vim. Look for the if has("gui_macvim") in that file and comment out that entire block and you should be able to start MacVim in windows mode. Side note, I've also turned off the native fullscreen support for MacVim ...
Ah, lord, somebody in #vim on Freenode helped me out: that line going around is bugged, because ; doesn't mean subsequent-command in Vim. The following works as intended: mvim --remote-silent +":%line | silent foldo!" "%file"
I was hitting this problem after upgrading to 10.11, and the accepted solution didn't work for me. I found that the problem was not with the updated MacVim install, but rather that the mvim script was finding an old MacVim binary I didn't even know I had rather than the freshly-updated one. So, if anyone hits this problem and the above fix doesn't work, ...
You can try to symlink the Perl 5.18 as 5.12: sudo ln -s /System/Library/Perl/5.18 /System/Library/Perl/5.12 This will take care of the Perl problem, but it did just lead to next error: mvim dyld: Library not loaded: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/libruby.1.dylib Referenced from: ...
I work on Windows 10 and :recover didn't find a swap file. vim -r listed the swap file from the last edit session (also never saved) named _.swp. Recovering was able with :recover _.
Only top voted, non community-wiki answers of a minimum length are eligible