2
0
This commit is contained in:
ai
2026-04-03 08:36:53 +00:00
commit 67c20e9dab
15 changed files with 648 additions and 0 deletions

25
.vim/plugin/autosave.vim Normal file
View File

@@ -0,0 +1,25 @@
if exists('g:loaded_autosave')
finish
endif
let g:loaded_autosave = 1
let g:autosave = get(g:, 'autosave', 0)
fu! s:autosave_start()
aug autosave
au!
au TextChanged,CursorHold,InsertLeave * sil! update
aug END
endf
fu! s:autosave_stop()
au! autosave
echo 'autosave: off'
endf
com! AirsaveOn call <SID>autosave_start()
com! AirsaveOff call <SID>autosave_stop()
if g:autosave
call <SID>autosave_start()
endif