home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / editors / 3287 < prev    next >
Encoding:
Text File  |  1993-01-24  |  1.1 KB  |  31 lines

  1. Newsgroups: comp.editors
  2. 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
  3. From: westes@netcom.com (Will Estes)
  4. Subject: Need help with v -c option
  5. Message-ID: <1993Jan24.061447.14615@netcom.com>
  6. Organization: Mail Group
  7. Date: Sun, 24 Jan 1993 06:14:47 GMT
  8. Lines: 21
  9.  
  10. I am having problems with vi's -c startup option.  I execute the
  11. command:
  12.  
  13.     vi -c  "set wm=12" myfile
  14.  
  15. I was hoping that this would execute the command set wm=12 before
  16. I started editing myfile.  What is happening instead is that the 
  17. commands in my .exrc file execute, but the set wm=12 does not.
  18. (Note, there is no set wm command in my .exrc file!)
  19.  
  20. What are the rules of precedence here regarding the -c startup
  21. option and the .exrc file?  Is there some way to force a command
  22. to execute at startup in addition to the ones found in .exrc?  I
  23. need some way of starting vi up with a different set of startup
  24. commands depending on my stty cols setting.
  25.  
  26. Also, while I'm here, can someone tell me how do you mark a line
  27. in .exrc as a comment?
  28.  
  29. -- 
  30. Will Estes        Internet: westes@netcom.com
  31.