• VMware

    Learn about VMware virtualization for its products like vsphere ESX and ESXi, vCenter Server, VMware View, VMware P2V and many more

  • Linux

    Step by step configuration tutorials for many of the Linux services like DNS, DHCP, FTP, Samba4 etc including many tips and tricks in Red Hat Linux.

  • Database

    Learn installation and configuration of databases like Oracle, My SQL, Postgresql, etc including many other related tutorials in Linux.

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

    The other day I was trying to open a text file to work on it but surprisingly on my every attempt to open the file, the below error was coming up and not allowing me to edit or save the file.

    Error:

    $ vi IIG.TEST.2014-04-02.2014-04-07-00.26.30.000000.out
    E575: viminfo: Illegal starting char in line: ^I+^I3^I18
    E575: viminfo: Illegal starting char in line: ^I+^I3^I0
    E575: viminfo: Illegal starting char in line: ^I+^I3^I0
    E575: viminfo: Illegal starting char in line: ^I+^I3^I0
    E575: viminfo: Illegal starting char in line: ^I+^I3^I0
    E575: viminfo: Illegal starting char in line: ^I+^I3^I4
    E575: viminfo: Illegal starting char in line: ^I+^I3^I28
    E575: viminfo: Illegal starting char in line: ^I+^I3^I65
    E575: viminfo: Illegal starting char in line: ^I+^I6^I0
    E575: viminfo: Illegal starting char in line: ^I+^I3^I47
    E136: viminfo: Too many errors, skipping rest of file



    Reason:

    This happens because the user's viminfo file gets corrupted somehow and certain characters are not interpretted so everytime you try to open the original file, it throws out "Illegal starting char in line"

    Solution:

    You can delete the user's viminfo file from the user's home directory using which you were getting the error. 

    NOTE: You can find .viminfo inside every user's home directory starting with a dot (.) as it is a hidden file.

    What is .viminfo file? 
    This file contains the history of all the vim editor records i.e the files edited and the arguments you used inside the editor etc. 

    Will it affect my current saved work?
    No deleting .viminfo file is not going to affect any of your existing work, 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?
    No, this file gets automatically created inside user's home directory as soon you start working on any text file using vi editor.

    Deepak Prasad

    is a techie and an author who is still trying to survive in this IT generation with very little knowledge he has on Linux/Unix, VMware, SAN Storage, Automation, networking etc

    You can follow him on Facebook or Google+


    Do you also have something to share here?
    Join GoLinuxHub Team as an Author, Click here for more information
    How to fix "E575: viminfo: Illegal starting char in line" How to fix "E575: viminfo: Illegal starting char in line" Reviewed by Deepak Prasad on Friday, April 11, 2014 Rating: 5

    5 comments:

    1. This delete my php file completly. But this tip is saved my life. Thank you!

      ReplyDelete
    2. This worked perfectly -- thanks!

      ReplyDelete
    3. Thanks! I was losing my mind.

      ReplyDelete

    Powered by Blogger.