Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a tool that automatically saves incremental changes to files while coding?

One of my favorite features of Google docs is the fact that it's constantly automatically saving versions of my document as I work. This means that even if I forget to save at a certain point before making a critical change there's a good chance that a save point has been created automatically. At the very least, I can return the document to a state prior to the mistaken change and continue working from that point.

Is there a tool with an equivalent feature for a Ruby coder running on Mac OS (or UNIX)?

For example, a tool that will do an automatic Git check-in every couple of minutes to my local repository for the files I'm working on. Maybe I'm paranoid, but this small bit of insurance could put my mind at ease during my day-to-day work.

like image 664
Bob. Avatar asked Mar 16 '10 20:03

Bob.


1 Answers

VIM

Some may hate my response to this, but I use VIM quite often when coding and it has an auto-save feature, albeit an auto-save to a swap file. It is also extensible so that automatic commits can be done.

To see how extensible VIM is, check out this post: How can I script vim to run perltidy on a buffer?

like image 112
kzh Avatar answered Nov 14 '22 23:11

kzh