2 ms·
It may not have quite the same effect but :au FocusLost * :wa should autosave when you switch to the browser without requiring keypresses.
by tel 16y ago
It may not have quite the same effect but
:au FocusLost * :wa
should autosave when you switch to the browser without requiring keypresses.
- graywh 16y agoOnly when using gVim.
- thecoffman 16y agoThis gets annoying sometimes if you're working in an unnamed file. If you haven't saved yet, or don't intend to (just a scratch buffer or something) it throws an error every time you switch contexts.