How to fix E575: viminfo: Illegal starting char in line

How to fix E575: viminfo: Illegal starting char in line

This post guides you on How to fix E575: viminfo: Illegal starting char in line on VIM text editor.

Once I was working with the VIM editor and everything was normal. When I started using the same VIM editor on the other day and tried to open any file, it was throwing me an ERROR of

"E575: viminfo: Illegal starting char in line: SOME_TEXT"

Reason of the ERROR E575: viminfo: Illegal starting char in line

This ERROR comes when the user’s .viminfo file gets corrupted for some reason and certain characters are not interpretted properly by VIM editor. So everytime you try to open the original file or any other file, it throws out “Illegal starting char in line”

You can see in the ERROR message that the error comes from the viminfo. As the error contains “viminfo:” in the message string.

Solution for this error:
Just go to the user’s home directory and delete the file .viminfo.

For example:
If root is the user then enter the following command in the console:

# rm /root/.viminfo

If user is other then root then enter the following command in the console:

# rm /home/<USER_NAME>/.viminfo

Lets say the user is infysim then the command will be:

# rm /home/infysim/.viminfo

If you are using a graphical user interface then the .viminfo file may not be visible because the preceding dot (.) denotes as a hidden file. So make hidden files visible and then delete the file.

What is .viminfo file?
This file is automatically generated as you start working with vim editor, which contains the history of all the vim editor records i.e which all files edited and what all arguments the user have used in the editor etc.

Will it affect on VIM settings?
No, deleting .viminfo file is not going to affect any of your prior vim settings, because the settings for vim is stored in another file entirely.
It is the same way you erase your cache history but it does not affects any of your work done.

Do I need to recreate a new .viminfo file manually?
No, this file gets automatically generated inside user’s home directory as soon as you start working on any text file using vim editor.

Previous How to disable comments in WordPress
Next HTC Desire 826 Dual SIM available at Rs 23,449

About author

siba 698 posts

A B.Tech degree holder with more than 5 years of experience on Embedded Systems design domain. He has worked on Aerospace domain, NAND storage, Server storage and Wireless networking.

View all posts by this author →

You might also like

FreeBSD Guides 0 Comments

[FreeBSD] How to set and unset loader variables in boot loader prompt

Important question is why you need to set and unset variables at boot time??? The answer is when something is stopping you from booting your system then this may help

FreeBSD Guides 0 Comments

[FreeBSD] How to install ports collection manually in FreeBSD

As an Administrator or a Device Drive developer you may need some utilities on the go to work in a convenient environment. Let’s say you want to install VIM editor,

FreeBSD Guides 2 Comments

[FreeBSD] How to allow Root access on FreeBSD over ssh protocol

This post guides you on how to enable root access on FreeBSD because by default FreeBSD does not allow root access over ssh protocol. So if you need to log

0 Comments

No Comments Yet!

You can be first to comment this post!