Question

How can I configure vim to autowrite buffers after switching with alt-tab to another application?

Was it helpful?

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
scroll top