Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrisbra/vim-autosave
autosave your work
https://github.com/chrisbra/vim-autosave
Last synced: 26 days ago
JSON representation
autosave your work
- Host: GitHub
- URL: https://github.com/chrisbra/vim-autosave
- Owner: chrisbra
- Created: 2016-08-04T19:29:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-06T22:03:14.000Z (almost 3 years ago)
- Last Synced: 2024-10-28T19:55:01.596Z (2 months ago)
- Language: Vim script
- Size: 24.4 KB
- Stars: 38
- Watchers: 4
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
vim-autosave
============
> A plugin to automatically save your filesThis plugin uses timers to automatically save your work as temporary files.
This makes use of the new timer functionality available with Vim 8.
Backup files will be written (by default every 5 minutes if the buffer was changed)
in your `backupdir` setting with a default extensions of '.backup'Unnamed buffers will be saved as `'unnamed_buffer_.txt.backup'`
Installation
---Use the plugin manager of your choice.
Alternatively, since Vim 8 includes a package manager by default, clone this repository below
`~/.vim/pack/dist/start/`You should have a directory `~/.vim/pack/dist/start/vim-autosave`
That directory will be loaded automatically by Vim.Usage
---
Once installed, take a look at the help at `:h vim-autosave` (not yet available).Here is a short overview of the functionality provided by the plugin:
### Ex commands::EnableAutoSave - Enable the plugin (by default every 5 minutes)
:DisableAutoSave - Disable the plugin
:AutoSave - Enable the plugin (every milliseconds)
:AutoSave - Output status of the plugin### Configuration variables (and defaults)
:let g:autosave_extensions = '.backup' - extension used for saving modified files
:let g:autosave_backup = '~/.vim/backup' - directory where to save backup files
:let g:autosave_max_copies = 20 - max number of copies (per file)
:let g:autosave_timer = 60*5*1000 - number of milliseconds to trigger
(by default every 5 minutes)When `g:autosave_backup` is defined and the directory exists, the path of the
saved buffer will be encoded into the filename, encoding directory separators by '=+'.License & Copyright
-------Developed by Christian Brabandt.
The Vim License applies. See `:h license`© 2009-2016 by Christian Brabandt
__NO WARRANTY, EXPRESS OR IMPLIED. USE AT-YOUR-OWN-RISK__