E138: Can't write viminfo file $HOME/.viminfo! Hit ENTER or type command to continue Does anyone know what is wrong?? Click to expand. E138: Can't write viminfo file /home/user/.di/.viminfo! Press ENTER or type command to continue.di is the config file for my program and I have no idea why it is trying to include itself in the path of the.viminfo file. Mercedes Benz Truck Racing S. E138: Can't write viminfo file $HOME/.viminfo! Discussion in 'Mac' started by hotister@hotmail.com, Jun 19, 2006.
When you enter recovery mode via the 'Root Shell' menu, the filesystem is mounted readonly by default. That means that you won't be able to save any changes you make to any files - and also that vim won't be able to write to root's.viminfo file.
From the root terminal, you can remount the filesystem with read-write permissions using mount -o remount,rw / (take careful note of the punctuation and whitespace). After that you should be able to use vim and save your changes.
Alternatively, you can select the 'Enable networking' option before dropping to the root shell - since networking needs to write to disk, that automatically does the remount for you.