chrisbra / vim-autosave Goto Github PK
View Code? Open in Web Editor NEWautosave your work
autosave your work
The autosave plugin often prevents me from going back through un-do.
Un-do works again in these files as soon as I disable the plugin.
With this plugin changes are saved are temporary files. It would be nice to have an option to actually write the original files every n secs.
the backup filename is strange, / in the path is +=
, but that's OK.
however can we timestamp the files, e.g. myfile.backup.20200620104059, i.e. suffix each backup with a timestamp, so this will be more robust, I sometimes want to have a history archive of backup files, not just the very last one.
even better let me set up how many backup files I want to keep, say 20 of them, so it won't fill up the disk over time. even better the plugin can create a default backup directory(e.g. $HOME/.vim/backup).
thanks for this great plugin.
I have let g:auto_save = 1
in my vimrc. autosave is enabled when I start the editor. If I :DisableAutoSave
the plugin is disabled as shown by :AutoSave
.
If I :EnableAutoSave
and :AutoSave
the plugin still shows as disabled.
Here is a screencast if it helps. You will have to full-screen the player by clicking the expansion button in the bottom right of the screen. Otherwise the command bar will be truncated.
when i tried to set
:let g:autosave_timer= 3000
then I typed:
:AutoSave
to get information from vim-autosave,it shows me:
No AutoSave Timer active,can you help me?
Thx.
Set an upper limit for backup file size.
Add a new option. let g:autosave_backup_max_filesize
When during backup, only backup file when the file size is smaller than autosave_backup_max_filesize.
Please correct me if I am wrong. Currently, if I open a 1GB file, make minor edit, it will be backup too, which is not necessary.
Thanks in advance.
just update the plugin and after vim sit idle for a while I saw:
Error detected while processing function Autosave_DoSave[18]..<SNR>124_SaveBuffer:
line 32:
E690: Missing "in" after :for
Observed:
I manually create C:\Users\user_name\.vim\backup. And start gvim.
However, C:\Users\user_name.vim\backup is always an empty dir.
Expected:
C:\Users\user_name.vim\backup should have backup files.
.vimrc:
" ----------------------------------------------
" vundle
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'chrisbra/vim-autosave'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:-----
" ----------------------------------------------
let g:autosave_timer = 10*1000
Gvim version: 8.2.416
Thanks.
Hello,
This plugin looks very useful, thanks!
How can I enable autosave for a particular file, please? Is there a way to do that in .vimrc?
Best,
Aleksey
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.