From owner-freebsd-questions Mon Jun 18 13:57:34 2001 Delivered-To: freebsd-questions@freebsd.org Received: from karon.dynas.se (karon.dynas.se [192.71.43.4]) by hub.freebsd.org (Postfix) with SMTP id AF92937B403 for ; Mon, 18 Jun 2001 13:57:29 -0700 (PDT) (envelope-from mikko@dynas.se) Received: (qmail 94718 invoked from network); 18 Jun 2001 20:57:27 -0000 Received: from spirit.sto.dynas.se (HELO spirit.dynas.se) (172.16.1.10) by 172.16.1.1 with SMTP; 18 Jun 2001 20:57:27 -0000 Received: (qmail 26829 invoked from network); 18 Jun 2001 20:55:00 -0000 Received: from explorer.rsa.com (10.81.217.59) by spirit.dynas.se with SMTP; 18 Jun 2001 20:55:00 -0000 Received: (from mikko@localhost) by explorer.rsa.com (8.11.3/8.11.3) id f5IKvKJ52985; Mon, 18 Jun 2001 13:57:20 -0700 (PDT) (envelope-from mikko) Date: Mon, 18 Jun 2001 13:57:20 -0700 (PDT) From: Mikko Tyolajarvi Message-Id: <200106182057.f5IKvKJ52985@explorer.rsa.com> To: jcm@FreeBSD-uk.eu.org Cc: questions@freebsd.org Subject: Re: change word or repeat operation in emacs? Newsgroups: local.freebsd.questions References: <20010618181631.A42271@dogma.freebsd-uk.eu.org> X-Newsreader: NN version 6.5.6 (NOV) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In local.freebsd.questions you write: >I'm still getting used to emacs, and overall i love it. But here are a few >commands i loved in vi that i haven't yet discovered emacs analogues for. >I will often use 'cw' in vi to change a word (usually a variable name, >constant, etc) and then go to another word i want to change as well. In vi >i can just use '.' to do this. Is there a similar way to 'change-word' then >'repeat-operation' in emacs, besides search-and-replace'? Not exactly, but there are "keyboard macros". C-x-( to begin, do some operations, including searching, C-x-) to end, and C-x-e to execute the same operations again. C-u NNN C-x-e to run the macro NNN times. There's more to it, see C-h-a "macro". $02, /Mikko P.S. This was not really a FreeBSD question, was it? ;-) -- Mikko Työläjärvi_______________________________________mikko@rsasecurity.com RSA Security To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message