Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jun 2001 16:15:26 -0500
From:      Mike Meyer <mwm@mired.org>
To:        j mckitrick <jcm@FreeBSD-uk.eu.org>
Cc:        questions@freebsd.org
Subject:   Re: change word or repeat operation in emacs?
Message-ID:  <15150.28526.672962.532381@guru.mired.org>
In-Reply-To: <77959675@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
j mckitrick <jcm@FreeBSD-uk.eu.org> 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. 

	<mike
--
Mike Meyer <mwm@mired.org>			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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15150.28526.672962.532381>