From: "Robert Thorpe" <rthorpe@realworldtech.com>
Subject: Re: Search like VIM
Date: 23 Jan 2007 08:42:50 -0800 [thread overview]
Message-ID: <1169570570.746987.90980@s48g2000cws.googlegroups.com> (raw)
In-Reply-To: <1169567192.591194.292790@k78g2000cwa.googlegroups.com>
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.
next prev parent reply other threads:[~2007-01-23 16:42 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 [this message]
2007-01-23 16:44 ` Tassilo Horn
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1169570570.746987.90980@s48g2000cws.googlegroups.com \
--to=rthorpe@realworldtech.com \
/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.