home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!mips!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: gnu.emacs.help
- Subject: Re: Define fnt for `replace next word'
- Date: 23 Jul 1992 05:26:14 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 22
- Distribution: gnu
- Message-ID: <14lftmINNsm@early-bird.think.com>
- References: <HARI.92Jul22210259@robios5.me.wisc.edu>
- NNTP-Posting-Host: gandalf.think.com
-
- In article <HARI.92Jul22210259@robios5.me.wisc.edu> hari@robios.me.wisc.edu (Kambainathan Hari) writes:
- > I would like to define a function to replace the next string
- >with the following, say until I hit the ESC key. A function somewhat
- >similar to that in vi where you can replace the `next sting' with
- >whatever you're going to type in.
-
- Why do you need to do this? Why not just delete the word and then type the
- replacement? I.e. the vi sequence
-
- dw <replacement> ESC
-
- is equivalent to the Emacs sequence
-
- ESC d <replacement>
-
- It's even one keystroke less to type, if that's how you measure editor
- utility.
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-