I’m back (to blogging) and aroused from my meat coma with some vim wisdom to share (vi-sdom?). Here a handy mapping to make your day better.
Of course you know that cw
(mnemonically “change word”) replaces from the cursor to the end of a word. But changing a part of something in snake_case or CamelCase is a slightly bigger pain in the carpal-T. So may I present clw
, mnemonically “change little word”.
[vim gutter=”false”]
noremap clw c/[_A-Z]
[/vim]
Simplicity itself, no?