vim-auto-save icon indicating copy to clipboard operation
vim-auto-save copied to clipboard

Autosave only after the file is written

Open crxyz0 opened this issue 4 years ago • 2 comments

Is there any setting that allows me to make it so vim-auto-save only starts autosaves after the file is written (manually using :w)?

I want this kind of setting because when I enter a new file using vim, I don't want vim-auto-save to immediately save after opening, because I might want to not keep the new file. My current settings for vim-auto-save is only let g:auto_save = 1

Software: Ubuntu, wsl2 nvim

crxyz0 avatar Jun 11 '21 22:06 crxyz0

FWIW there's another plugin that has this feature: https://github.com/Pocco81/AutoSave.nvim/blob/3d342d6fcebeede15b6511b13a38a522c6f33bf8/README.md#:~:text=won%27t%20be%20saved.-,exists,-%3A%20(Boolean)%20if%20true

andrew222651 avatar Jul 24 '22 16:07 andrew222651