When searching for text in evil mode using / key, then entering text. The value searched for isn't saved as it is in vim, where the up/down arrow keys can cycle search history.

Is it possible for emacs/evil mode to store each search as it does with : commands?

Update, isearch keys aren't configured for vim-like behavior.

I looked into this and the isearch keymap can be modified, will add own answer.


2 Answers 2


You will find things more Vim like with the Evil search module rather than isearch search module with Evil :

(evil-select-search-module 'evil-search-module 'evil-search)

To have up/down arrow keys cycle history as with vim, you can define isearch keymap.

(define-key isearch-mode-map (kbd "<down>") 'isearch-ring-advance)
(define-key isearch-mode-map (kbd "<up>") 'isearch-ring-retreat)
  • Nice answer as it allows to use the usual editing hotkeys you may have configured, while the caret is inside the regexp line. The 'evil-search from the other answer has its own hotkeys.
    – Hi-Angel
    Dec 7, 2022 at 13:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.