* evil mode repeat search
@ 2015-10-05 16:59 Kendall Shaw
2015-10-05 21:52 ` Óscar Fuentes
0 siblings, 1 reply; 2+ messages in thread
From: Kendall Shaw @ 2015-10-05 16:59 UTC (permalink / raw)
To: help-gnu-emacs
In vi/vim/viper, / and ? repeat the previous search. In evil, they do
not (it seems). I can get around that by using 'n'. So, for example:
/Blah
edit edit edit
n
n
n
n
edit edit edit
But, in dired-mode, using evil, 'n' doesn't work to repeat the previous
search either. To get around that, for forward search, I can type / M-p
<ENTER>, but doing that 20 times in a row is too difficult and I can't
search backward. For example:
/Except
do something else
/ M-p <ENTER>
/ M-p <ENTER>
/ M-p <ENTER>
/ M-p <ENTER>
do something else
Has anyone come up with a solution? Or, is there some other approach I
can take?
Kendall
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: evil mode repeat search
2015-10-05 16:59 evil mode repeat search Kendall Shaw
@ 2015-10-05 21:52 ` Óscar Fuentes
0 siblings, 0 replies; 2+ messages in thread
From: Óscar Fuentes @ 2015-10-05 21:52 UTC (permalink / raw)
To: help-gnu-emacs
Kendall Shaw <kshaw@kendallshaw.com> writes:
> In vi/vim/viper, / and ? repeat the previous search. In evil, they do
> not (it seems).
Try with
(setq evil-search-module 'evil-search)
> I can get around that by using 'n'. So, for example:
>
> /Blah
> edit edit edit
> n
> n
> n
> n
> edit edit edit
>
>
> But, in dired-mode, using evil, 'n' doesn't work to repeat the previous
> search either. To get around that, for forward search, I can type / M-p
> <ENTER>, but doing that 20 times in a row is too difficult and I can't
> search backward. For example:
>
> /Except
> do something else
> / M-p <ENTER>
> / M-p <ENTER>
> / M-p <ENTER>
> / M-p <ENTER>
> do something else
>
>
> Has anyone come up with a solution? Or, is there some other approach I
> can take?
In dired mode `n' is bound to dired-next-line. IIRC there is some
package on the 'net for enabling most evil key binding on dired mode.
However, the setting I mentioned above also works for repeated `/' in
dired mode, so you may find it adequate.
BTW, evil-mode has its own mailing list. See the project's page:
https://bitbucket.org/lyro/evil/wiki/Home
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-05 21:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-05 16:59 evil mode repeat search Kendall Shaw
2015-10-05 21:52 ` Óscar Fuentes
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.