Vim macros

October 17, 2014

Let’s face it - vim is awesome! If you don’t think so, you can stop reading. Because today’s post is on a useful little feature called macro.

I usually use macros whenever I have to make changes that are hard to do with regular expressions. And it’s that simple:

@a replays the macro. If you want to replay it more than once, type <nr of times>@a as with every other vim command (for example “20@a”).

Happy viming!

comments powered by Disqus