Vim error E303: Unable to open swapfile for "filename", recovery impossible

The vim swap file is nothing to do with the system swap, it’s specifically for the use of the vim editor.

It sounds like you have a permission issue with the swap file location, you don’t have write access. The article I linked to shows how to set the location to somewhere with correct permissions.

1 Like