Tell Vim to save all files when it loses focus.

stevelosh

Steve Losh

3 years ago · 1,252 views
" Save when losing focus "
au FocusLost * :wa
Raw

I missed this so much after moving away from TextMate. It's good to have it again.

Tagged: vim vimrc
Comments are only visible to Forrst members. Log in or Request an invite.
3 new notifications