How can I emulate Vim's * search in GNU Emacs?

前端 未结 9 1649
星月不相逢
星月不相逢 2020-12-23 16:57

In Vim the * key in normal mode searches for the word under the cursor. In GNU Emacs the closest native equivalent would be:

C-s C-w

But th

9条回答
  •  一个人的身影
    2020-12-23 17:35

    Mickey of Mastering Emacs blog reintroduced a cool "Smart Scan" lib that gives global bindings of M-n and M-p for navigating symbols under the cursor in the buffer. Doesn't affect search register so it's not a * replacement as is, but a clever and usable alternative to the navigation problem.

提交回复
热议问题