E138: Can't write viminfo file /home/$USER/.viminfo.tmp!

We need to set the path to avoid this error or create this file and make it writeable.