FG
💻 Software

How to get rid of the warnings when opening a file that has a .swp file?

Fresh7 days ago
Mar 15, 2026153477 views
Confidence Score1%
1%

Problem

How can I get rid of the annoying warnings when I open a file that has a .swp file? Or, how do I not generate the .swp files at all? Example warning:

Error Output

E325: ATTENTION
Found a swap file by the name ".notes.swp"
          owned by: james   dated: Fri Dec  3 17:38:07 2010
         file name: ~james/school/se/project-dir/rottencucumber/doc/notes
          modified: no
         user name: james   host name: james-laptop
        process ID: 2251 (still…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to get rid of the warnings when opening a file that has a .swp file?

Low Risk

This message is actually pretty important if you care about not losing text you've potentially not saved. It should not be considered annoying, and should not cause you to hastily delete the swap file or configure to run without it. Any file you edit with will have a corresponding swap file while you edit, which uses to keep track of changes. When you quit editing a file, will automatically discard the corresponding swap file. Therefore, the existence of a swap file, and your attempt to write o…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment