> Source: [sk165721](https://support.checkpoint.com/results/sk/sk165721)

# sk165721 - Swap error while using Vi editor

| Property | Value |
|----------|-------|
| Solution ID | sk165721 |
| Date Created | 2020-03-12 |
| Last Modified | 2020-03-15 |
| Technical Level | Advanced |
| Products | Security Gateway, Security Management Server |
| Versions | R82.10, R82, R81.20, R82.10, R82, R81.20, R82.20 |

## Symptoms

- When using Vi editor, the following message appears:

```
 
E325: ATTENTION
Found a swap file by the name ".FILE.swp"
          owned by: USERNAME   dated: Wed Mar 11 12:01:49 2020
         file name: /path_to_file/.FILE.swp
          modified: YES
         user name: admin   host name: USERNAME
        process ID: PID
While opening file ".FILE.swp"
             dated: DATE_OF_MODIFICATION

(1) Another program may be editing the same file.
    If this is the case, be careful not to end up with two
    different instances of the same file when making changes.
    Quit, or continue with caution.

(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r .FILE.swp"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file ".FILE.swp"
    to avoid this message.
".FILE.swp" 54L, 2508C

```

## Cause

A swap file is created when another user is currently editing a file on the file system's view Vi.  

It is also sometimes seen during a Sync between Management HA.

```

```

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
