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

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

Re: Search like VIM


From: Tassilo Horn
Subject: Re: Search like VIM
Date: Tue, 23 Jan 2007 17:44:23 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.92 (gnu/linux)

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.


reply via email to

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