Vim: write back my file on each key press

前端 未结 6 433
孤街浪徒
孤街浪徒 2020-12-24 08:56

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

6条回答
  •  生来不讨喜
    2020-12-24 09:38

    There are CursorMoved and CursorMovedI autocmd events, but I don't think there's one that applies every single time you type in Insert mode.

    You could also, were you so bold, rebind every single printable character in Insert mode to save and then type the character.

提交回复
热议问题