TransWikia.com

How can I make terms searched with `*` or `#` populate the search history?

Emacs Asked by Jir on February 14, 2021

In my attempt to have * and # work in Spacemacs as they do in Vim, I’ve followed the solution posted at this question.

Those keys now work, but there’s one hurdle more to overcome: the searched term does not populate the search history.

As an example, suppose you:

  • do /aaa
  • position yourself over another word, say “bbb” and hit *
  • hit n

Spacemacs will search for “aaa” rather than “bbb”.
Is there a way to fix this behaviour?

One Answer

You can use evil-symbol-word-search to accomplish what you want by adding the following to you init.el after loading evil

(setq-default evil-symbol-word-search t)

Answered by Felipe Lema on February 14, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP