From owner-freebsd-questions Mon Jun 18 14:15:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 3742837B401 for ; Mon, 18 Jun 2001 14:15:27 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 39698 invoked by uid 100); 18 Jun 2001 21:15:26 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15150.28526.672962.532381@guru.mired.org> Date: Mon, 18 Jun 2001 16:15:26 -0500 To: j mckitrick Cc: questions@freebsd.org Subject: Re: change word or repeat operation in emacs? In-Reply-To: <77959675@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ 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 j mckitrick types: > 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'? You want - maybe - "repeat-complex-command". That redoes the last command which used the minibuffer. Liable to be bound to C-x M-:. I seldom use it, though. If I've got to do something repeatedly, I use a keyboard macro. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message