I just used my first Vim macro!
I knew they were super powerful, but I was avoiding them because the seemed like something hardcore Vim users used. I don't think I'm hardcore (yet). I've only used Vim for a month and a half!
Anyway, I was working in Patreon's code base and had to internationalize a bunch of strings so I recorded a macro to change 'some string'
into __('some string')
:
qd
ysa'(
i__
q
Now whenever I call @d
, I save a few seconds.