[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: |
David Combs |
Subject: |
Re: vim equivalent in emacs %5,50s/serah_term/replace_term/gc |
Date: |
Fri, 23 Nov 2007 02:33:24 +0000 (UTC) |
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?
Trying to regionize it kills it, nor does it seem to be in *Messages*.
Thanks!,
David