No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help
View Responses


Grex Test Item 31: Set wm-10 test (failure)
Entered by tnt on Wed Oct 2 19:13:34 UTC 1991:

 This is a test to see if creating ".exrc" & putting "Set wm=10" in it has
 doneany
Well, that answers the question, doesn't it! I wonder if I have to !chmod 755
it in order to make it work?

8 responses total.



#1 of 8 by tnt on Wed Oct 2 19:14:55 1991:

 But wait, in reading this item, it seems like it might have worked? Well,
 wouldn't that be nice!


#2 of 8 by tnt on Wed Oct 2 19:16:00 1991:

Alas...



#3 of 8 by tnt on Wed Oct 2 19:35:21 1991:

 OK, well, maybe I should have !chmod -x .exrc ?? I think that is the same as
 !chmod 711 .exrc, which is what I tried, but I don't think it worked? Oh well,
 I'll certainly keep trying.


#4 of 8 by tnt on Wed Oct 2 19:35:37 1991:

Alas...


#5 of 8 by steve on Thu Oct 3 00:05:38 1991:

   Uh, you shouldn't have to do anything special to the .exrc file in
order to get it to execute commands for you.  I've not tried "set rm=xxx"
myself, but what you've done should work.  Or perhaps you need the string
'wrapmargin'?


#6 of 8 by tcc on Thu Oct 3 08:36:54 1991:

Nunsense.


#7 of 8 by remmers on Thu Oct 3 15:37:05 1991:

.exrc only has to be readable by you; no execute permission required.
However, I think you *do* have to be in the same directory as the .exrc
for vi to read it.  At least, that's the way it works for me.

The environment variable EXINIT is always processed by vi on startup,
so in your .login file you could put

        setenv EXINIT 'set wm=10'

and wrapmargin will be set regardless of your current working directory.
Or you could do

        setenv EXINIT 'source /u/tnt/.virc'

and have a file named '.virc' in your home directory with the startup
commands you want.


#8 of 8 by ric on Fri Nov 29 05:21:25 1991:

Wow.. an actually useful test.

Response not possible - You must register and login before posting.

No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help

- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss