all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: harven <harven@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: Search for a word in Emacs as is done in gvim
Date: Fri, 17 Apr 2009 16:17:19 +0200	[thread overview]
Message-ID: <m27i1j4b68.fsf@free.fr> (raw)
In-Reply-To: mailman.5530.1239976484.31690.help-gnu-emacs@gnu.org

rakeshg <rakeshbabugr@gmail.com> writes:

> Hi,
>
> In gvim we have a feature where:
>
> By having the cursor on a particular word, and pressing "*" key , we can
> search for the word in the files.
>
> In emacs we have first copy the word and then do Ctl-S and then paste it.
>
> Is there a way in emacs to search for a word like we do in gvim(VI)

With the point at the beginning of the word, type: C-s C-w C-s C-s ...
You can swallow several words if you want :        C-s C-w C-w C-w C-s C-s ...
or even everything until the end of line:          C-s C-y

see the following for a list of options after the first C-s
http://www.emacswiki.org/emacs/IncrementalSearch


  parent reply	other threads:[~2009-04-17 14:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.5530.1239976484.31690.help-gnu-emacs@gnu.org>
2009-04-17 14:16 ` Search for a word in Emacs as is done in gvim Scott Frazer
2009-04-17 14:17 ` harven [this message]
2009-04-17 12:09 rakeshg
2009-04-17 19:41 ` Tassilo Horn
2009-04-17 20:57   ` rakeshg
     [not found] ` <mailman.5543.1239997324.31690.help-gnu-emacs@gnu.org>
2009-05-03  1:07   ` David Combs
2009-05-03  8:10     ` Tassilo Horn

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=m27i1j4b68.fsf@free.fr \
    --to=harven@free.fr \
    --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.