This script manages "numbered backups," allowing you to keep multiple historical versions of a single file rather than just the last one.
This ensures every save creates a unique, timestamped file in your backup directory (e.g., myfile.txt@2024-05-08.12:45 ). Configure gvim swap, undo, and backup files on windows vim backup download
" Automatically add a timestamp to backup filenames au BufWritePre * let &bex = '@' . strftime("%F.%H:%M") Use code with caution. This script manages "numbered backups," allowing you to