News for hackers. Stuff that matters.
Re:Vim anti-patterns by alinajaf on Wednesday February 08, 2012 @05:14AM (#3565976)
Nice! I think I might add that to my .vimrc. The only thing I'd add about macros is that I generally use them for multi-line transformations (i.e. they usually end with `j`). This means you can record your macro and the run `n@q` where n=the number of lines you want to run it for and q=the register where your macro lives. This is useful for annoying, repetitive syntax transformation tasks.
Re:Vim anti-patterns by dasil003 on Wednesday February 08, 2012 @05:51AM (#3566045)
Ah, I never have done a count on a macro before, but I do much the same thing with the @q bind. I have my key repeat rate set to maximum, so I can just hold down space and it flies down the lines.