2

Using evil mode, pressing * runs evil-search-word-forward.

But for some reason C/C++ mode uses _ as a delimiter, meaning ID_FOO will only match the first term ID when searching for the next term.

How to configure these delimiter characters?

ideasman42
  • 8,375
  • 1
  • 28
  • 105

1 Answers1

1

Even though I had:

(modify-syntax-entry ?_ "w")

Set, some modes ignore this (C/C++ for example)

Found solution is to set this for spesific modes:

(modify-syntax-entry ?_ "w" c-mode-syntax-table)
(modify-syntax-entry ?_ "w" c++-mode-syntax-table)
ideasman42
  • 8,375
  • 1
  • 28
  • 105