Problem scenario
You save a file in vi. When you go to exit you get the error “E138: Can’t write viminfo file /home/cooluser/.viminfo!”
The error appears to be benign. You can just press ENTER to continue. But you would rather not do this.
What should you do?
Solution
Find the group that this user should be associated with (e.g.,
…