home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / editors / 2826 < prev    next >
Encoding:
Text File  |  1992-11-20  |  923 b   |  31 lines

  1. Newsgroups: comp.editors
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!daffy!uwvax!wolf.cs.wisc.edu!cheevers
  3. From: cheevers@wolf.cs.wisc.edu (John Cheevers)
  4. Subject: Re: VI - finding lines longer than 80 characters
  5. Message-ID: <1992Nov20.212000.14999@cs.wisc.edu>
  6. Sender: news@cs.wisc.edu (The News)
  7. Organization: University of Wisconsin, Madison -- Computer Sciences Dept.
  8. References: <1992Nov20.005343.807@pasteur.Berkeley.EDU> <#nz10s#@rpi.edu>
  9. Distribution: na
  10. Date: Fri, 20 Nov 1992 21:20:00 GMT
  11. Lines: 18
  12.  
  13. In article <#nz10s#@rpi.edu> night@acm.rpi.edu writes:
  14. >
  15. >BTW, is there a way to easily re-execute the last ex command in vi?
  16. >-- 
  17. >Trip Martin
  18. >night@acm.rpi.edu
  19.  
  20. The "&" key will execute the last substitute command.  Strangely, it only 
  21. does it once - If your last command was
  22.  
  23.     :s/recieve/receive/g
  24.  
  25. Then hitting "&" executes
  26.  
  27.     :s/recieve/receive    (without the "g")
  28.  
  29. John Cheevers
  30. cheevers@cs.wisc.edu
  31.