I am using opensuse for my production environment. I am login as "test" user and trying to edit a file using "vi" but when i am going to save that file it shows the following error
**
E138: Can't write viminfo file /home/test/.viminfo
**
Under the "test" user all the files and folder autometically become read-only. I am trying to change the permission using "root" user but unable to change it. also I look for temp file like "~/.viminf*" but there nothing like this.
Don't know what to do plaese help.... anyone aware about this problem
Fix your home directory owner and permissions.
sudo chown -R test /home/test
sudo chmod u+rw -R /home/test
And finally check that no old temp files were left behind (e.g. ~/.viminf*) and that you can write in the directory of the .viminfo file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With