Change Little Word, Change

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]

Simplicity itself, no?

mnemonic, not pneumonic

coma, not comma

About selah

Programmer at Prominence Advisors. Also dabbling musician. Also cycling commuter.
This entry was posted in Programming, Vim and tagged , , , , . Bookmark the permalink.

2 Responses to Change Little Word, Change

  1. Pingback: Having my :vim and M-x emacs-ing it too | MetaSandwich

Leave a Reply

Your email address will not be published. Required fields are marked *