Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vi

Status
Not open for further replies.

ep4star

Technical User
Apr 23, 2004
15
US
ex: 0602-100 No lines exist in the specified buffer.
[Press return to continue]

why does this come up in vi when i first open a file?
 
Do you have a .exrc file in your home directory with something strange in it?

CaKiwi
 
no there is nothing strange in .exrc

any other suggestions.....
 
Mmmm...

To make sure you are looking at the right .exrc file, add a line to it that will change something obvious, say

set nu

and see if the next vi you do has line numbers displayed.

Does it happen for any file you edit, in any directory? Does it happen for any user?

CaKiwi
 
Just do a vi ~/.exrc or more ~/.exrc and see what is there. This is a problem with .exrc file [as said by CaKiWi].
Gbag
 
when i do the following

vi ~/.exrc

this opens a blank file
 
Add

set nu

to ~/.exrc, exit vi and edit ~/.exrc again to see if line numbers are displayed.

Does it happen for any file you edit, in any directory? Does it happen for any user?

CaKiwi
 
the line numbers did not show

this happens for all users in any directory
 
Do you have the EXINIT shell variable defined?

Enter

:set all

while in vi and post the results.

CaKiwi
 
this didn't help . still getting same error.

 
It wasn't supposed to help. It was supposed to give us more information to enable us to diagnose your problem. If you want to post the information requested, someone may be able to help. If not, you are on your own.

CaKiwi
 
i guess i'm not following....do i type in :set all
before i vi a file or while i'm already in a file?
 
root@xxxxxxxx:40# vi .exrc
ex: 0602-100 No lines exist in the specified buffer.
[Press return to continue]

i added :set all inside .exrc as suggested
 
from the shell prompt, type

printenv | grep EXINIT

and post the results, if any.

Then enter

vi .exrc

Hit enter to continue. Then enter

:set all

This should give you al list of all the vi options, something like

autoindent nomodelines noshowmode
autoprint nonumber noslowopen
noautowrite nonovice tabstop=64
nobeautify nooptimize taglength=0
directory=/tmp paragraphs=IPLPPPQPP LIpplpipnpbtags=/tags
noedcompatible prompt term=vt100
noerrorbells noreadonly noterse
exrc redraw timeout=200
flash remap ttytype=vt100
hardtabs=8 report=0 warn
ignorecase scroll=11 window=23
nolisp sections=NHSHH HUuhsh+c nowrapscan
nolist shell=/bin/csh wrapmargin=4
magic shiftwidth=4 nowriteany
mesg showmatch

which you can post here.

CaKiwi
 
[/home/zzxxxxx]
root@nxxxxxx:45# printenv | grep EXINIT
EXINIT=-V
[/home/zzzzzzz]
root@xxxxxxx:46# vi .exrc
ex: 0602-100 No lines exist in the specified buffer.
[Press return to continue]
".exrc" 2 lines, 16 characters
set nu
:set all
 
Edit .exrc and delete the line containing :set all

I don't know what the -V in EXINIT is and I don't have access to an AIX system. Do a man vi to see if you can find any mention of it. Try entering

export EXINIT=

and then try another vi

You still haven't posted the results of entering

:set all

while in vi

CaKiwi
 
Yee Ha........that worked....

the export EXINIT=

thank you very much for your time an patience
 
You're welcome. You maybe should try to find out why EXINIT was set to -V and where it is being set. There might be a good reason for it that we don't know about.

CaKiwi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top