Where is my viminfo file on Windows? Ask Question 4. Can't rename viminfo file) Hot Network Questions Why are aircraft parts built in different places and assembled in one? Is the Higgs boson an elementary particle? If so, why does it decay? Why is Gbt3fC79ZmMEFUFJ a weak password? E886: Can't rename viminfo file to /home/kjeld/.viminfo! Don't have write privileges in Rstudio using Ubuntu 16.04. Firefox can only be started by sudo.
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 savethat file it shows the following error
**
E138: Can't write viminfo file /home/test/.viminfo
Are.vimrc and.viminfo the same files but with different names? In every tutorial there are advices to change.vimrc, but I don't have this file, only.viminfo. Most likely this is happening because the home dir has run out of disk space and any new vim operation is unable to write in the.viminfo file.
**
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
closed as off topic by guido, martin clayton, xlecoustillier, René Höhle, Stephen ConnollyFeb 18 '13 at 8:52
Questions on Stack Overflow are expected to relate to programming within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.
1 Answer
Fix your home directory owner and permissions.
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.
Viminfo File Is Not Writable
Not the answer you're looking for? Browse other questions tagged linuxshellcommand-lineopensuse or ask your own question.
I have already checked several similar links but nothing worked. Before i explain the issue, i was earlier getting following message while saving any file:
While searching for solution, i came across several links which suggested creating .vimrc file. So i created one and entered the following contents in it:
I also created the ~/.vim/backups directory. Also, there is no .viminfo file. I think i removed it while trying to fix things.
Few other details that might be of interest are:
Can T Write Viminfo File Windows
Now with the above permissions in place (no write for any user in any of the parent dirs), whenever i switch to git user and try saving any file, i am now getting the following error:
Is the above error expected or am i doing something wrong? GitLab application creates git user as part of the install process so i am not sure whether changing the permissions will be a good idea.
E138 Can't Write Viminfo File Windows
2 Answers
It looks like you need to set the location of your viminfo file as well, with something like:
See :help viminfo
and :help 21.3
for more information.
For me the problem was that ~/.vim/files/info/viminfo
was a directory instead of a file.