

Adding write permissions for “ other” solved the problem. You can also check the permission and ownership of /HOME/.viminfo* For some reason, this resulted in the owner of the directory to be “ nobody“.

You should fix this removing this file as shown below. If above situation is fine than there could be lots of reason, may be viminfo file in $/HOME/.viminfo! is corrupted. I fixed this issue increasing inode on the server.
#Vimr error free
I found this issue on my vps server there was no free inode was left. If it is showing 100% Isue means you have to make some space on your server. Now let’s check inode usage using below command:įollow my this tutorial to find : Top 10 Space Consuming Directories & Files On Linux & UNIX System # df -iįilesystem Inodes IUsed IFree IUse% Mounted on In my example my disk / partition disk space is 67% used it means all looks good no need to increase disk. # df -hįilesystem Size Used Avail Use% Mounted on Check Disk Spaceįirst of all check disk space on the server using below command. In this article I will show how you can fix this error. First you should check your server disk space.Įrror : Vim Error E138: Can't write viminfo file $HOME/.viminfo! This could be the main reason that vim operation is unable to write in the. It happens due to out of disk space or may be no free inode is left on the server/system. # vi new-file.If you are getting this error “ Can’t write viminfo file” it means there is no space left on the system. Now, try to open any file in Vi editor, you will not get the E319 error message anymore.

Ii vim-tiny 2:7.2.079-1ubuntu5 Vi IMproved - enhanced vi editor - compact v 6. Ii vim-runtime 2:7.2.079-1ubuntu5 Vi IMproved - Runtime files Ii vim-gui-common 2:7.2.079-1ubuntu5 Vi IMproved - Common GUI files

Ii vim-gnome 2:7.2.079-1ubuntu5 Vi IMproved - enhanced vi editor - with GNOM Ii vim-common 2:7.2.079-1ubuntu5 Vi IMproved - Common files Verify that vim-gui-common and vim-runtime packages are installedĮxecute the dpkg command to make sure these packages are installed.
#Vimr error install
Install both these packages using apt-get command as shown below. Install vim-gui-common and vim-runtime packages from the respository Vim-runtime - Vi IMproved - Runtime files 4. Vim-gui-common - Vi IMproved - Common GUI files In the following example, we can notice that these two packages are available in the OS repository. So, it is better to install both these packages. Also, it is advisable to install vim-runtime package, which will help you to solve some other issues that you may encounter in the future. Search your OS repository to make sure vim-gui-common package is available. Search vim-gui-common and vim-runtime packages in Your OS Respository Ii vim-tiny 2:7.2.079-1ubuntu5 Vi IMproved - enhanced vi editor - compact v 4. 2:7.2.079-1ubuntu5 Vi IMproved - Common files
