|
|
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.
But wait, in reading this item, it seems like it might have worked? Well, wouldn't that be nice!
Alas...
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.
Alas...
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'?
Nunsense.
.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.
Wow.. an actually useful test.
Response not possible - You must register and login before posting.
|
|
- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss