Steve Losh, Vim extraordinaire and creator of extravagant zsh prompts has released vitality.vim, a plugin that brings back focus events to terminal Vim. Focus events are vital if you want to save buffers on focus change, for instance:
" Save when losing focus
au FocusLost * :silent! wall
Steve has plenty of Vim goodies under his GitHub account and his dotfiles are a treasure trove, especially his
.vimrc. Be sure to check out clam, his plugin for bringing the shell into Vim.
Support The Changelog. Become a member!
Linked by Wynn Netherland on Apr 13, 2012