[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Search like VIM
From: |
Robert Thorpe |
Subject: |
Re: Search like VIM |
Date: |
23 Jan 2007 08:42:50 -0800 |
User-agent: |
G2/1.0 |
CloudStrife wrote:
> I need to search a lot for variables in script and the way VIM handles
> searching is much more comfortable than how emacs handles, i.e. aftr
> "/<var-name> RET" all the occurances are highlighted and they remain
> that way. Pressing "n" anytime will take you to next occurance.
> In emacs once any key other that C-s or C-r is pressed the highlight
> goes off and we nees "C-s C-s" to get it bak Is there a solution to
> keep it highlighted always (atleast this if not the "n" also, which can
> b replaced by "C-s C-s")
You could use:
M-x highlight-regexp RET regexp
Or, for things like this where I want to keep a list of matches to a
search I use M-x occur.
This doesn't do the same thing though, since it puts all the matches in
a list in a separate buffer.
Often this is useful though.