help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vim equivalent in emacs %5,50s/serah_term/replace_term/gc


From: Giorgos Keramidas
Subject: Re: vim equivalent in emacs %5,50s/serah_term/replace_term/gc
Date: Fri, 23 Nov 2007 04:43:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (berkeley-unix)

On Fri, 23 Nov 2007 02:33:24 +0000 (UTC), dkcombs@panix.com (David Combs) wrote:
>In article <mailman.3124.1194518944.18990.help-gnu-emacs@gnu.org>,
>Peter Dyballa  <Peter_Dyballa@Web.DE> wrote:
>>
>>Am 08.11.2007 um 05:01 schrieb iluvindo:
>>
>>> Hi I recently moved from vim to emacs and need help to search and
>>> replace
>>> using line numbers(say between two lines 5 and 50).  This can be
>>> done in vim
>>> as %5,50s/serah_term/replace_term/gc
>>> What is equivalent in emacs?
>>
>>Activate 'active region highlighting' from Options menu, mark the
>>region either by dragging with the mouse cursor or with the keyboard
>>(M-g g 5 RET C-SPC M-g g 50 RET), and then substitute:
>
> M-g?  So I did C-h k on M-g, and in a mini-or-whatever buffer at
> screen bottom, a line saying "set-face: default m-g d, ......".
>
> My question: how to grab that doc-line?

M-g is a `command prefix'.  You can see the help of `M-g g' by typing
`C-h k M-g g'.  This opens a new buffer/window, and you can switch to
that window using `C-x o' (one more more times, if necessary), to copy
text, move around, etc.

If you are using a GUI version of Emacs, point with your favorite
pointing device and click somewhere in the help buffer.  It will become
the active buffer, and you can copy text, move around, and so on...

HTH,
Giorgos



reply via email to

[Prev in Thread] Current Thread [Next in Thread]