Giter Club home page Giter Club logo

vim-autosave's Introduction

image

vim-autosave's People

Contributors

chrisbra avatar musq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vim-autosave's Issues

autosave prevents un-do

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.

filename and timestamp

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.

autosave won't enable after being disabled

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.

setting on vim-autosave wrong

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.

Feature request: set an upper limit for backup file size.

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.

missing "in" after :for

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

Bug report: not working on Windows 10.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.