Skip to content

E303 Unable to open swap file

1

May be because you previously loaded a vim script initialization file, but you failed to load that file now.

2

Check if your ~/.config/nvim/init.vim exists.

  • Once Julyfun renamed init.vim to init.nvim and E303 occurs.

3

Check the owner of ~/.local/share/nvim/swap

Do something like:

sudo chown <user_name>:<group_name>  swap