Unix/Linux OS/Problem in VI editor

Advertisement


Question
I am using SUSE LINUX ENTERPRISE SERVER 9 (X86_64)OS. When i use vi editor thrugh 'root' login' to create a file, e.g. vi hitesh, then it works fine. But if i use login 'informix' for the same command "vi hitesh", it gives following message:

"Hitesh" [New File]
E576: viminfo: Missing '>' in line: Rt.per^@
E576: viminfo: Missing '>' in line: ^I"^I1^i0^@
Hit ENTER or type command to continue.

When i press enter, it enters in vi editor.

Why this error message comes? what is the solution. for other users, the vi workd fine.  

Answer
Hi Hitesh,

First of all, my apologies for the late reply.  I've been out of town.

Your errors can be fixed by simply delete the file .viminfo in your home directory.  So, for instance if your username is "hitesh", delete the file /home/hitesh/.viminfo.  Try using vi to open "hitesh" again and your errors should be gone.  These kinds of errors are usually due to an error in the viminfo file.

Best of luck.

-Robert

Unix/Linux OS

All Answers


Answers by Expert:


Ask Experts

Volunteer


Robert McIntosh

Expertise

Installation, Administration, typical tcp/ip services (sendmail, apache, qmail, tomcat, hylafax, etc.), Linux as desktop

Experience

7 years Linux system administration, FreeBSD administration

Publications
http://www.rebelwords.org

Education/Credentials
Bachelors, A Certified, Network Certified, currently employed in emergency department at major hospital

©2012 About.com, a part of The New York Times Company. All rights reserved.