All Projects → vim-scripts → Vim Auto Save

vim-scripts / Vim Auto Save

Automatically save changes to disk

Labels

Projects that are alternatives of or similar to Vim Auto Save

Vimclojure
A filetype, syntax and indent plugin for Clojure
Stars: ✭ 182 (-14.55%)
Mutual labels:  viml
Dotfiles
config files for zsh, bash, completions, gem, git, irb, rails
Stars: ✭ 2,206 (+935.68%)
Mutual labels:  viml
Vim Go
Go development plugin for Vim
Stars: ✭ 14,085 (+6512.68%)
Mutual labels:  viml
Vimfiles
Ruby/Rails centric vimfiles with support for Git, RVM and more.
Stars: ✭ 185 (-13.15%)
Mutual labels:  viml
Dot Vimrc
Maple's vim config files
Stars: ✭ 2,192 (+929.11%)
Mutual labels:  viml
Clojurewest2012 Slides
Slides from Clojure/West 2012
Stars: ✭ 196 (-7.98%)
Mutual labels:  viml
Tabman.vim
Tab management for Vim
Stars: ✭ 180 (-15.49%)
Mutual labels:  viml
Cocoa.vim
Vim plugin for Cocoa/Objective-C development. No longer actively developed.
Stars: ✭ 205 (-3.76%)
Mutual labels:  viml
Vim Sneak
The missing motion for Vim 👟
Stars: ✭ 2,467 (+1058.22%)
Mutual labels:  viml
Vimfiles
My Vim configuration
Stars: ✭ 201 (-5.63%)
Mutual labels:  viml
W3m.vim
w3m plugin for vim
Stars: ✭ 186 (-12.68%)
Mutual labels:  viml
Textobj Word Column.vim
Adds text-objects for word-based columns in Vim.
Stars: ✭ 189 (-11.27%)
Mutual labels:  viml
Vim Packager
Vim plugin manager that utilizes "jobs" and "pack" features.
Stars: ✭ 197 (-7.51%)
Mutual labels:  viml
Vim Glsl
Vim runtime files for OpenGL Shading Language
Stars: ✭ 184 (-13.62%)
Mutual labels:  viml
8cc.vim
C Compiler written in Vim script
Stars: ✭ 205 (-3.76%)
Mutual labels:  viml
Eregex.vim
Perl/Ruby style regexp notation for Vim
Stars: ✭ 180 (-15.49%)
Mutual labels:  viml
Vimwiki
Personal Wiki for Vim
Stars: ✭ 193 (-9.39%)
Mutual labels:  viml
Vim Kalisi
The colorscheme with neovim in mind
Stars: ✭ 207 (-2.82%)
Mutual labels:  viml
Vim Distinguished
A dark vim color scheme for 256-color terminals.
Stars: ✭ 205 (-3.76%)
Mutual labels:  viml
Vifm.vim
Vim plugin that allows use of vifm as a file picker
Stars: ✭ 197 (-7.51%)
Mutual labels:  viml

AutoSave

Description

AutoSave - automatically save changes to disk without having to use :w (or any binding to it) every time a buffer has been modified.

Inspired by the same feature in RubyMine text editor.

Installation and Usage

Use vundle or download packaged version from vim.org.

AutoSave is disabled by default, run :AutoSaveToggle to enable/disable it.
If you want plugin to be always enabled it can be done with g:auto_save option:

" .vimrc
let g:auto_save = 1  " enable AutoSave on Vim startup

AutoSave relies on CursorHold event and sets the updatetime option to 200 so that modifications are saved almost instantly.
But sometimes changing the updatetime option may affect other plugins and break things.
You can prevent AutoSave from changing the updatetime with g:auto_save_no_updatetime option:

" .vimrc
let g:auto_save_no_updatetime = 1  " do not change the 'updatetime' option

You can disable AutoSave in insert mode with the g:auto_save_in_insert_mode option:

" .vimrc
let g:auto_save_in_insert_mode = 0  " do not save while in insert mode

AutoSave will display on the status line on each auto-save by default.

(AutoSaved at 08:40:55)

You can silence the display with the g:auto_save_silent option:

" .vimrc
let g:auto_save_silent = 1  " do not display the auto-save notification

If you need an autosave hook (such as generating tags post-save) then use g:auto_save_postsave_hook option:

" .vimrc
let g:auto_save_postsave_hook = 'TagsGenerate'  " this will run :TagsGenerate after each save

Contribution

Development is made in 907th/vim-auto-save repo.
Feel free to contribute!

License

Distributed under the MIT License (see LICENSE.txt).

Copyright (c) 2013-2014 Alexey Chernenkov

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].