Differences in evil-search-module
Other than the fact that the commands gn/gN only work with the evil interactive search, what are the other differences between the evil and emacs implementation? Is there an "official" recommendation at this point, or a suggestion, or are they both equally good/supported?
The following bindings defined in `evil-maps.el` only work with the `evil-search` module: ;; search command line (define-key evil-ex-search-keymap "\d" #'evil-ex-delete-backward-char) (define-key evil-ex-search-keymap "\C-r" 'evil-paste-from-register) (define-key evil-ex-search-keymap "\C-n" 'next-history-element) (define-key evil-ex-search-keymap "\C-p" 'previous-history-element) I suspect there are other differences, but I can't remember even after skimming through `evil-search.el`. On 6/1/16, Nir Friedman <[email protected]> wrote:
Other than the fact that the commands gn/gN only work with the evil interactive search, what are the other differences between the evil and emacs implementation? Is there an "official" recommendation at this point, or a suggestion, or are they both equally good/supported?
The evil search module has several features of Vim that are not available in the isearch module, for instance - regular expressions are translated from Vim format to Emacs format (this is not perfect but works reasonably well). - magic characters via \v or \V - more configuration options (variables starting with evil-ex-search-*) - it's traditional minibuffer, so can freely move point around - additional key bindings as Gordon said In general the evil search module is closer to Vim, the isearch module is, well, Emacs. Which one is preferable depends on you. Evil search is hand-written and probably less reliable, whereas isearch is a very mature Emacs package. Best regards, Frank
participants (3)
-
Frank Fischer -
Gordon Gustafson -
Nir Friedman