Autowrite VIM buffers after <alt-tab>
Question
How can I configure vim to autowrite buffers after switching with alt-tab to another application?
Solution
You want:
autocmd FocusLost * :wall
In your .vimrc
I just tried it and it seems to work.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow