FG

How do I make vim's undo buffer persistent across sessions?

Fresh3 days ago
Mar 15, 20261996 views
Confidence Score0%
0%

Problem

When I make an edit to a file and then leave vim, I would like to be able to undo that change when I reopen it later.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I make vim's undo buffer persistent across sessions?

Low Risk

You can turn on persistent undo, check the help with At least vim 7.3 is required. undo-persistence needs some setup before use, like defining a directory to keep the persistent undo information. A good explanation is given here: http://amix.dk/blog…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment