Historic - Vim save history using git
Create a backup of the last save for the current file. If the file hasn't changed then no backup will be made
Show available revisions for file
(Incomplete) Compare the current buffer with a historic version. If you omit revision the latest revision will be used
(Incomplete) Replace the current buffer with a historic version. If you omit revision the latest revision will be used
By default Historic will bind to the save (BufWritePost) of every filetype and run :HistoricBackup. If you would like to disable this function and action the backup manually do the following in you .vimrc.
let g:historicBackupOnSave = 0
By default Historic will create the backup repo in ~/.vim.backup you can change by defining the location in your .vimrc as below
let g:historicBackupRepoLocation = "~/mycustomlocation"
Licenced under the New BSD License