https://github.com/arecarn/vim-backup-tree
https://github.com/arecarn/vim-backup-tree
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/arecarn/vim-backup-tree
- Owner: arecarn
- License: mit
- Created: 2018-02-04T07:34:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-07-29T03:48:14.000Z (almost 6 years ago)
- Last Synced: 2025-05-29T14:14:49.421Z (about 1 year ago)
- Language: Vim script
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Backup Tree
Cross platform Vim plugin that provides timestamped backups in a parallel
directory tree.
For example if you save the file /home/user/.vimrc it will be backed up in
/home/user/.vim_backup/home/user/.vimrc_2018-02-08-10 with the timestamp format
being YYYY-MM-DD-HH.
## Usage
Enable Vim's built in backup feature and Backup Tree will take care of the rest.
```
set backup
" Optionally set the location of your backup tree (defaults to ~/.vim_backup)
let g:backup_tree = '~/.vim_backup_tree"
```
* `:BackupTree`
* Opens the directory g:backup_tree in a vertical split
* `:BackupTreeCurrent`
* Opens the directory in g:backup_tree that corresponds to your current
buffers directory