Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to autosave all files periodicatlly in Vim?

Tags:

vim

I was using gedit for a while and now I am using vim . There was a nice option of autosave in gedit . I want to know if there is an option of autosaving in vim. I want to save my codes which I am writing after every 1 minute because of the disruption of electricity.

like image 219
aroup Avatar asked Jan 27 '26 21:01

aroup


1 Answers

You can use the vim-auto-save script to save files every time their buffers are modified.

like image 74
Lars Kotthoff Avatar answered Jan 29 '26 13:01

Lars Kotthoff



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!