I'm running Mavericks and I recently started playing around with
sshfs to try to boost my productivity by using MacVim (I've been using in-terminal vim for a few years now). I really like MacVim.
I only have one issue so far. I've configured MacVim to hide after closing, which is perfect. Suppose I want to edit
main.cpp, I simply launch
mvim main.cpp from the cmd line and MacVim opens up. When I'm done with
main.cpp, I close MacVim (via
:wq) and my terminal regains focus right away. Perfect.
The only issue I face is that if, while editing
main.cpp, I focus to another window, say, Google Chrome to look something up, then continue editing
main.cpp. After closing
main.cpp, Google Chrome would regain focus rather than my terminal.
Is there any way to force MacVim to remember from where it was launched and always regain focus to that place? I will always launch MacVim from a terminal.