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”.

noremap clw c/[_A-Z]

Simplicity itself, no?

mnemonic, not pneumonic

coma, not comma

Advertisements

About Selah Ben-Haim

Programmer for Clockwork Active Media Systems. Also dabbling musician. Also cycling commuter.
This entry was posted in Programming, Vim and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s