Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!apple!rutgers!att!whuts!homxb!ho7cad!hoswjc!wjc From: wjc@ho5cad.ATT.COM (Bill Carpenter) Newsgroups: comp.emacs Subject: Re: vi feature I miss Message-ID: Date: 26 Feb 89 15:04:39 GMT References: <600@usl> Sender: nuucp@ho7cad.ATT.COM Reply-To: wjc@ho5cad.att.com (Bill Carpenter) Distribution: comp Organization: AT&T Bell Laboratories Lines: 38 In-reply-to: pml@usl's message of 24 Feb 89 14:43:51 GMT In article <600@usl> pml@usl (Patrick Landry) writes: > There is one > feature of vi I miss; the period key. This feature > repeats the last 'editing' command issued. I have > not found a feature of Gnu-emacs which does the > same thing without user intervention (extra keystrokes). > If there is such a command, I'd like to know about > it. I'm taking you're word for it that the period in "vi" acts as you describe. There is a similar feature in GNUemacs, although I can't tell if this is what you're looking for. I found out about it by reading the manual, but every time I demonstrate it to somebody, I get a reaction like "wow! how'd you do that?" By default, this is bound to "C-x ESC". For more elaborate stuff, check out "electric-command-history". repeat-complex-command: Edit and re-evaluate last complex command, or ARGth from last. A complex command is one which used the minibuffer. The command is placed in the minibuffer as a Lisp form for editing. The result is executed, repeating the command as changed. If the command has been changed or is not the most recent previous command it is added to the front of the command history. Whilst editing the command, the following commands are available: ESC Prefix Command LFD exit-minibuffer RET exit-minibuffer C-g abort-recursive-edit ESC n next-complex-command ESC p previous-complex-command -- -- Bill Carpenter att!ho5cad!wjc or attmail!bill