markley@celece.ucsd.edu (04/14/89)
I hope someone can help me with this. I created a .exrc file in my home directory. All it does is sets autoindent and tabstops to 4. If I run vi in my home directory it works fine but if I move to another directory autoindent and tabstops don't get set. Is this a feature or a bug? According to the man pages vi uses ~/.exrc NOT .exrc. I have rwx for everybody on the file so even though that should not be a problem I did eliminate the possiblity. Thanks in advance. Mike Markley Apollo Systems Support UCSD Dept of Electrical and Computer Engineering R-007 La Jolla, CA 92093 markley@celece.ucsd.edu markley@kubrick.ucsd.edu 619-534-3431
GBOPOLY1@NUSVM.BITNET (fclim) (04/18/89)
Hi, in article <6244@sdcsvax.UCSD.Edu>, Mike Markley (markley%celece.ucsd.edu.uucp@sdcsvax.ucsd.edu) writes: >I hope someone can help me with this. I created a .exrc file >in my home directory. All it does is sets autoindent and >tabstops to 4. If I run vi in my home directory it works fine >but if I move to another directory autoindent and tabstops >don't get set. Is this a feature or a bug? According to the >man pages vi uses ~/.exrc NOT .exrc. I have rwx for everybody >on the file so even though that should not be a problem I did >eliminate the possiblity. I am not sure as I do not have SR10.1, but I'll put my two cents in. At 9.7, I had problems with .cshrc. First, I make sure .chsrc belongs to me by using /com/edacl :.cshrc -a fclim -owner (I don't trust Domain/IX chmod or chown, so I use /com/edacl). Still, it doesn't work; my csh prompt remain a %. Then, I check /etc/passwd and I found myself not listed. So I run /etc/crpasswd and presto, everytime I logs in, the csh prompt became what I wanted it to be; meaning .cshrc was read by csh. Point is, make sure .exrc belongs to you; it doesn't matter if you give rwx to the world. If a ls -l .exrc reveals a -1 for a userid, then run chown or /com/edacl. If it reveals a non-negative number for a userid instead of a nice name like fclim, then do a grep your_userid /etc/passwd If this returns error, then ask your system adminstrator to run /etc/crpasswd You may have to ask your adminstrator to do the chown (edacl) as well. Hope this will help you on SR10.1. Let me know if it does. fclim --- gbopoly1 % nusvm.bitnet @ cunyvm.cuny.edu computer centre singapore polytechnic dover road singapore 0513.