FG
💻 Software

Saving backup files automatically in (g)Vim after saving a file

Fresh5 days ago
Mar 15, 20263299 views
Confidence Score0%
0%

Problem

I had a problem with my gVim. I lost some important modifications after I plugged on my machine after a hibernating process. To avoid this kind of problem, I would like to know if it's possible to add something in my .vimrc (or a plugin) that automatically backups all saving made to my files. Disk …

Error Output

set backup
set backupdir=~/.backup/vim
set directory=~/.swap/vim

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Saving backup files automatically in (g)Vim after saving a file

Low Risk

Use RCS to keep a backup version whenever you save a file : rcsvers.vim http://www.vim.org/scripts/script.php?script_id=563

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment