home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / emacs / help / 3453 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.2 KB

  1. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!mips!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Re: Define fnt for `replace next word'
  5. Date: 23 Jul 1992 05:26:14 GMT
  6. Organization: Thinking Machines Corporation, Cambridge MA, USA
  7. Lines: 22
  8. Distribution: gnu
  9. Message-ID: <14lftmINNsm@early-bird.think.com>
  10. References: <HARI.92Jul22210259@robios5.me.wisc.edu>
  11. NNTP-Posting-Host: gandalf.think.com
  12.  
  13. In article <HARI.92Jul22210259@robios5.me.wisc.edu> hari@robios.me.wisc.edu (Kambainathan Hari) writes:
  14. >    I would like to define a function to replace the next string
  15. >with the following, say until I hit the ESC key. A function somewhat
  16. >similar to that in vi where you can replace the `next sting' with
  17. >whatever you're going to type in.
  18.  
  19. Why do you need to do this?  Why not just delete the word and then type the
  20. replacement?  I.e. the vi sequence
  21.  
  22.     dw <replacement> ESC
  23.  
  24. is equivalent to the Emacs sequence
  25.  
  26.     ESC d <replacement>
  27.  
  28. It's even one keystroke less to type, if that's how you measure editor
  29. utility.
  30. -- 
  31. Barry Margolin
  32. System Manager, Thinking Machines Corp.
  33.  
  34. barmar@think.com          {uunet,harvard}!think!barmar
  35.