sponsor Vim development Vim logo Vim Book Ad

cbackup.vim : Use VMS style versioned backup with centralized backup directory

 script karma  Rating 19/6, Downloaded by 616  Comments, bugs, improvements  Vim wiki

created by
Maciej Delmanowski
 
script type
utility
 
description
This is a modification of vimscript #1537 to make it work with centralized backup directories. Backups are saved by default in $HOME/.backups, with recursive subdirectories reflecting the original location of the file being saved, using the VMS versioning system.

Parts of the script running under VMS were not changed. Script was tested on Linux, and should work in other environments too (Windows, Mac).
 
install details
Download the script and put it in your ~/.vim/plugin/ directory.

Configuration:

g:backup_directory - the root of the backup directory structure, by default it's set to "$HOME/.backups". It will be automatically created if not found.

g:backup_purge - number of files to preserve during write, by default 10. Older files will be automatically removed.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
cbackup.vim 2.2.1 2008-12-08 7.0 Maciej Delmanowski Initial upload
ip used for rating: 3.139.81.58

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github