1

After the snippet gets expanded the cursor is put to the first section (long_name).

What key do I need to press in order to replace long_name?

Evil operations like e.g. cw or ce change long or to the line end, while I only want to replace long_name

screenshot

jjk
  • 705
  • 4
  • 16

1 Answers1

1

I think what you're looking for is to treat the underscore as part of the word, as Vim does. The best answer is probably this one - look at the solution adding advice around evil-inner-word

gregoryg
  • 915
  • 6
  • 8
  • 1
    Indeed. The second answer does what I need (replace word with ce): https://emacs.stackexchange.com/a/20717/21118 – jjk May 13 '20 at 06:07