From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: M G Berberich Newsgroups: gmane.emacs.help Subject: Re: Emacs and vim analogs Date: Sun, 18 Feb 2007 22:36:58 +0100 Organization: Comp.Center (RUS), U of Stuttgart, FRG Message-ID: References: <854ppji8yx.fsf@lola.goethe.zz> Reply-To: berberic@fmi.uni-passau.de NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1171834840 3594 80.91.229.12 (18 Feb 2007 21:40:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Feb 2007 21:40:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 18 22:40:31 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HItln-0006IA-14 for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Feb 2007 22:40:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HItlm-0007RG-J6 for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Feb 2007 16:40:30 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.ision.net!newsfeed2.easynews.net!ision!news.belwue.de!news.uni-stuttgart.de!avaloon.forwiss.uni-passau.de!news Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-X-Trace: infosun2.rus.uni-stuttgart.de 1171834653 9768 212.144.146.85 (18 Feb 2007 21:37:33 GMT) Original-X-Complaints-To: news@news.uni-stuttgart.de Original-NNTP-Posting-Date: Sun, 18 Feb 2007 21:37:33 +0000 (UTC) User-Agent: slrn/0.9.8.1pl1 (Debian) Original-Xref: shelby.stanford.edu gnu.emacs.help:145694 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41299 Archived-At: Hello On Sun, 18 Feb 2007 20:03:50 +0100, David Kastrup wrote: > "Clinton Curry" writes: >> 2) Redo-last-change. In Vim, if you make a change, pressing "." >> will make the change again. Is there something analogous in Emacs, >> aside from defining a macro? > > Either C-x M-ESC or C-x z, depending on your requirements. You probably mean C-x ESC ESC or C-x M-: . C-x M-ESC simply quits my emacs. But both are not doing what '.' does in vim. With vims . you can repeate commands like “replace next three word with …”, “indent 5 lines”, “append … to line” or “replace rest of line with …” (where … stands for some text). This is not possible with emacs because there is no implicit grouping of inserted characters, so C-x z repeats the last character typed, which is completely useless. While I use the . command in vim frequently, I never ever had any use for “repeat” or “repeat-complex-command” (I can't even think of a usefull application for “repeat”). MfG bmg -- "Des is völlig wurscht, was heut beschlos- | M G Berberich sen wird: I bin sowieso dagegn!" | berberic@fmi.uni-passau.de (SPD-Stadtrat Kurt Schindler; Regensburg) | www.fmi.uni-passau.de/~berberic