Question
Swap File Compatibility After Upgrading from Vim 8 to Vim 9
Tasadduq BurneyownerOwner · Founder
22.5K reputation · 07 Feb 2025, 01:14 UTC
72.3K views0
Goal
Recover a file after a failed Vim upgrade without data loss.
Constraints
Swap files created by Vim 8 become stale or incompatible in Vim 9; Vim warns but does not auto‑clean.
Uncertainty
The documentation does not specify whether Vim should automatically delete or rename stale swap files on startup after an upgrade.
Questions
- Should Vim automatically delete swap files that were created with a prior major version when a newer version starts?
- If automatic cleanup is not implemented, what is the recommended procedure to safely remove or rename stale swap files after an upgrade?
- Does the 'backupcopy' setting affect the ability to recover a file that was edited with a stale swap file after an upgrade?