Saving files on lost focus in console Vim

view full story

http://unix.stackexchange.com – I have been trying to setup the console version of vim to save any changed files when the Terminal window loses focus. Following these instructions does not work. Even though I am using OS X, I figure this may be something that affects vim running on Linux as well. Could be wrong, but I thought I'd also try on here as well as apple.stackexchange.com. Am I to assume that maybe the reason why this does not work for a console version of vim is because it's only intended to work with GUI versions, i.e. MacVim? Is there a way to get this to work for a console version of vim? I'm using the late (HowTos)