- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vi not reading the default configuration file (.ex...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2000 02:00 AM
тАО07-23-2000 02:00 AM
vi not reading the default configuration file (.exrc)
Can anybody tell me how to set the EXINIT in ksh through my .profile ?
- Amit Kureel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2000 04:42 AM
тАО07-23-2000 04:42 AM
Re: vi not reading the default configuration file (.exrc)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2000 06:35 PM
тАО07-23-2000 06:35 PM
Re: vi not reading the default configuration file (.exrc)
No lines in the buffer
What could be the reason...?
- Amit Kureel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2000 09:08 PM
тАО07-23-2000 09:08 PM
Re: vi not reading the default configuration file (.exrc)
pls have a look in the man page of ex command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2000 09:25 PM
тАО07-23-2000 09:25 PM
Re: vi not reading the default configuration file (.exrc)
check env output for EXINIT , if it exists unset EXINIT then , edit .exrc and put the values you want and try.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2000 09:41 PM
тАО07-23-2000 09:41 PM
Re: vi not reading the default configuration file (.exrc)
EXINIT is not set in the env, in fact when I try to set it through my .profile as :
set EXINIT 'source $HOME/.exrc'
and after that if I try to open a file, vi flashes the following error message :
"=/$HOME/.exrc" doesn't exist"
I wonder why it is putting this "=" before the path....?
- Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2000 10:37 PM
тАО07-23-2000 10:37 PM
Re: vi not reading the default configuration file (.exrc)
There might be an error with the definition of your home directory inn /etc/passwd.
Could you please check whether there is no '=' in there.
If this is wrong, it can't find the .exrc file you put in what you think is your home directory.
Bye,
Rik.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2000 10:46 PM
тАО07-23-2000 10:46 PM
Re: vi not reading the default configuration file (.exrc)
If the homedir definition in /etc/passwd is correct, check the contents of your $HOME environment variable.
If this contains the '=' sign, and your homedir in /etc/passwd does not, check your shell startup files for the string HOME. A typo somewhere may have caused your homedir to contain the '=' sign.
Bye,
Rik.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2000 10:55 PM
тАО07-23-2000 10:55 PM
Re: vi not reading the default configuration file (.exrc)
Thanks for your effort but, both the $HOME and the entry in /etc/passwd are perfeclty okay...
Can anybody tell me what is the correct syntax to set EXINIT in my .profile or the one I mentioned in my previous reply is fine...?
-- Amit Kureel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2000 10:58 PM
тАО07-23-2000 10:58 PM
Re: vi not reading the default configuration file (.exrc)
try this one:
In your .profile add the line:
EXINIT=$(cat $HOME/.exrc)
If you are using CDE either add this line into .dtprofile or set DTSOURCEPROFILE=true
Cheers
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2000 03:41 PM
тАО07-24-2000 03:41 PM
Re: vi not reading the default configuration file (.exrc)
Instead of trying to figure out how many ways a newline character shows up in your .exrc file, it might be better to copy your .exrc file to another file, maybe .exinit. Then put your commands all on one line, seperated with |'s. And then just cat the file as previously suggested.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2000 03:57 PM
тАО07-24-2000 03:57 PM
Re: vi not reading the default configuration file (.exrc)
Small question dont mind ,
with out setting EXINIT , if you try vi any file and say ESC : set number , is it giving line numbers , if so you can try concentrate on setting EXINIT on .profile , if its not working then u can look in to vi .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2000 04:07 PM
тАО07-24-2000 04:07 PM
Re: vi not reading the default configuration file (.exrc)
I don't know how the ex editor handles initalization errors, but it probably stops processing commands once it encounters an error. If the error happens at the start of the file, it will seem as if it the file isn't being processed.
Try starting with a simple .exrc file. such as just a set numbers and see if your files have line numbers and go from there, adding commands until you find the one that is given you a problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2000 04:23 PM
тАО07-24-2000 04:23 PM
Re: vi not reading the default configuration file (.exrc)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2000 07:00 PM
тАО07-24-2000 07:00 PM
Re: vi not reading the default configuration file (.exrc)
Rajsri, after having opened a file in vi, any normal ex-command is working through for example, ESC : set nu
Hello Curt, regarding the message " No lines in buffer " when I put a very simple comand like "set nows" (of course without qoutes....!) in my .exrc file, I am still getting the error, even without an .exrc file and without any EXINIT var being set, vi flashes this error message...!
-- Amit Kureel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2000 10:00 PM
тАО07-24-2000 10:00 PM
Re: vi not reading the default configuration file (.exrc)
is vi the problem?
it seems like you can start vi, create files, modify files, change settings just fine. You could try editing some files from /tmp, your home directory, /var/tmp and see if your still having the same results.
is your id the problem?
are other user ids have the same issue when using vi?
have you tried using the login dot files of someone that isn't having the problem
does root have the same problem?
is the file the issue?
have other users had the same results vi'ing this file
how does vi work with other files
you've probably checked many of these things already. But maybe I've given you a suggestion for further investigation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2000 01:12 AM
тАО07-25-2000 01:12 AM
Re: vi not reading the default configuration file (.exrc)
I have already checked this and strange thing is that for any other user, things appear to be working just fine, with vi quite comfortably reading the .exrc file but for this particular user of mine it's causing this problem, I even checked with a .profile of another user for whom things are working...!
Next I am planning to drop and re-create the user with a fresh .profile.....wish me best of luck, because this user is being used for the development of a huge application...
-- Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2000 03:53 AM
тАО07-25-2000 03:53 AM
Re: vi not reading the default configuration file (.exrc)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2000 04:05 AM
тАО07-25-2000 04:05 AM
Re: vi not reading the default configuration file (.exrc)
If you check one of my earlier replies, then you will find that even in a "no EXINIT and no .exrc file" situation also I am getting this error....?
-- Amit Kureel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2000 09:26 AM
тАО07-25-2000 09:26 AM
Re: vi not reading the default configuration file (.exrc)
Could you copy the .exrc file in a directory and then cd to that directory and opening the file in that directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2000 04:12 AM
тАО07-30-2000 04:12 AM
Re: vi not reading the default configuration file (.exrc)
Thanks to evrybody who participated in this discussion, I found the reason for my problem...the first line was blank in my .exrc file thats was causing this problem and by the way I found that vi doesn't read the lines after a blank line (at least the version I have....HP-UX 11.00 64-bit).
Thanks again
-- Amit Kureel