VimLocalHistory : Automatic backup and poor man's revision control.
| script karma
Downloaded by 449
Comments, bugs, improvements
script versions (upload new version)
|VLH automatically saves buffers on write using git. This provides a convenient, automatic backup system of, e.g. files in /etc that are modified, as well as a poor man's "local history" (a lá the eclipse feature with the same name).
Feedback, bug reports and suggestions gratefully accepted at <firstname.lastname@example.org>.
To use, install, configure g:vlh_repository_dir and then use vim normally. Every time you write a buffer whose path is on the local filesystem, a copy is saved in a git repository.
You can open, diff or restore older versions of files with the commands VLHOpen, VLHDiff and VLHReplace.
source code is available from github at http://github.com/hjdivad/vimlocalhistory/tree/master
|To install from a tarball:
After ensuring that you meet the requirements, copy the contents of
plugin to user-specific vim plugin directory, probably ~/.vim/plugin/
To install documentation, copy README (this file) to your vim
documentations directory, such as ~/.vim/doc/vlh.txt. After copying
the documentation, execute ":helptags ~/.vim/doc" from within vim to
make the documentation accessible.
To install from source:
Install the requirements, additionally installing rake version 0.8.1
or higher, and then execute
which will install the plugin and documentation.
Once VLH is installed, make sure to edit your ~/.vimrc to include
let g:vlh_repository_dir = "/path/where/youd/like/to/store/localhistory"
I suggest using ~/.vim/localhistory.
Click on the package to download.
ip used for rating: