I\'d like vim to automatically write my file as often as possible. The ideal would be every keystroke.
I need to save regularly so that my background build process wi
Whoops! I have been informed I forgot to mention that this usage is in the TODO list, and is "Coming Soon®". I actually wanted this feature a few days ago and discovered it doesn't work yet. Drat!
use autosave option in .vimrc (_vimrc for windows)
set autosave=4
This will save your file 4 seconds after the last change. Setting it to one would accomplish what you're looking for. It'll be automatic and always work. (Simpler is better)
TODO ... evidently I wasn't retaining WHERE I found this when I wrote this answer long ago. Thanks @sehe