Tag Archives: vim

Code munging with vim: if modifier to if block

Not infrequently, I discover I want to turn an if modifier into an if block so I can add extra logic when the conditional is true. I decided to automate that with a vim macro: For it to work, the if modifier has to be on a line of its own (which I usually do […]

Posted in perl programming | Also tagged , , | Comments closed