all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: help-gnu-emacs@gnu.org
Subject: Re: vim equivalent in emacs %5,50s/serah_term/replace_term/gc
Date: Fri, 23 Nov 2007 04:43:52 +0200	[thread overview]
Message-ID: <87y7cpwujb.fsf@kobe.laptop> (raw)
In-Reply-To: fi5e5k$70u$1@reader1.panix.com

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	other threads:[~2007-11-23  2:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-08  4:01 vim equivalent in emacs %5,50s/serah_term/replace_term/gc iluvindo
2007-11-08 10:48 ` Peter Dyballa
     [not found] ` <mailman.3124.1194518944.18990.help-gnu-emacs@gnu.org>
2007-11-23  2:33   ` David Combs
2007-11-23  2:43     ` Giorgos Keramidas [this message]
2007-12-16 19:40       ` David Combs
2007-12-16 23:08         ` Peter Dyballa
2007-11-23 10:15     ` Peter Dyballa
     [not found]     ` <mailman.3967.1195812952.18990.help-gnu-emacs@gnu.org>
2007-12-16 19:42       ` David Combs
     [not found] <mailman.3119.1194512077.18990.help-gnu-emacs@gnu.org>
2007-11-09 10:18 ` Rupert Swarbrick
2007-11-09 22:53   ` Lennart Borgman (gmail)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y7cpwujb.fsf@kobe.laptop \
    --to=keramida@ceid.upatras.gr \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.