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

  2. BestChase says:

    I see you don’t monetize your site, don’t waste
    your traffic, you can earn additional cash every month because you’ve got hi quality
    content. If you want to know how to make extra $$$, search for: Ercannou’s essential adsense

Leave a Reply

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