unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
Subject: Re: Search like VIM
Date: Tue, 23 Jan 2007 17:44:23 +0100	[thread overview]
Message-ID: <873b61puag.fsf@baldur.tsdh.de> (raw)
In-Reply-To: 1169567192.591194.292790@k78g2000cwa.googlegroups.com

Hi,

you want

,----[ C-h k C-s ]
| C-s runs the command isearch-forward
|   which is an interactive compiled Lisp function in `isearch.el'.
| It is bound to C-s, <menu-bar> <edit> <search> <i-search> <isearch-forward>.
| (isearch-forward &optional REGEXP-P NO-RECURSIVE-EDIT)
| 
| Do incremental search forward.
| With a prefix argument, do an incremental regular expression search instead.
| 
| As you type characters, they add to the search string and are found.
| The following non-printing keys are bound in `isearch-mode-map'.
| 
| [...]
`----

and

,----[ C-h k C-r ]
| C-r runs the command isearch-backward
|   which is an interactive compiled Lisp function in `isearch.el'.
| It is bound to C-r, <menu-bar> <edit> <search> <i-search> <isearch-backward>.
| (isearch-backward &optional REGEXP-P NO-RECURSIVE-EDIT)
| 
| Do incremental search backward.
| With a prefix argument, do a regular expression search instead.
| See C-s for more information.
`----


This highlights all matches when searching. If you want the highlighting
permanently, try

,----[ C-h f highlight-regexp RET ]
| highlight-regexp is an alias for `hi-lock-face-buffer' in `hi-lock.el'.
| It is bound to <menu-bar> <edit> <hi-lock> <highlight-regexp>.
| (highlight-regexp REGEXP &optional FACE)
| 
| Set face of each match of REGEXP to FACE.
| 
| Interactively, prompt for REGEXP then FACE.  Buffer-local history
| list maintained for regexps, global history maintained for faces.
| Use M-n and M-p to retrieve next or previous history item.
| (See info node `Minibuffer History'.)
`----

Regards,
Tassilo
-- 
A morning without coffee is like something without something else.

  parent reply	other threads:[~2007-01-23 16:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-23 15:46 Search like VIM CloudStrife
2007-01-23 16:42 ` Robert Thorpe
2007-01-23 16:44 ` Tassilo Horn [this message]
2007-01-23 18:44   ` Drew Adams

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=873b61puag.fsf@baldur.tsdh.de \
    --to=tassilo@member.fsf.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).