The Changelog

Open Source moves fast. Keep up.

vitality.vim restores focus events to terminal Vim

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.

Have comments? Send a tweet to @TheChangelog on Twitter.

Subscribe to The Changelog Weekly – our weekly email covering everything that hits our open source radar.