home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.editors
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!csus.edu!netcom.com!westes
- From: westes@netcom.com (Will Estes)
- Subject: Need help with v -c option
- Message-ID: <1993Jan24.061447.14615@netcom.com>
- Organization: Mail Group
- Date: Sun, 24 Jan 1993 06:14:47 GMT
- Lines: 21
-
- I am having problems with vi's -c startup option. I execute the
- command:
-
- vi -c "set wm=12" myfile
-
- I was hoping that this would execute the command set wm=12 before
- I started editing myfile. What is happening instead is that the
- commands in my .exrc file execute, but the set wm=12 does not.
- (Note, there is no set wm command in my .exrc file!)
-
- What are the rules of precedence here regarding the -c startup
- option and the .exrc file? Is there some way to force a command
- to execute at startup in addition to the ones found in .exrc? I
- need some way of starting vi up with a different set of startup
- commands depending on my stty cols setting.
-
- Also, while I'm here, can someone tell me how do you mark a line
- in .exrc as a comment?
-
- --
- Will Estes Internet: westes@netcom.com
-