News for hackers. Stuff that matters.
Re:My Top Sublime Text 2 Plugins by irahul on Thursday January 17, 2013 @08:03AM (#5072363)
> And then I'd press the dot key and do the same with the other lines in supposedly longer list.

I am posting this again(posted above about running a macro on a range), but I guess lot of people don't know about this.You need not manually press . on every line. You can run . operator on a range. Do a visual select and then

    :'<,'>normal .<CR>
The range('<,'>) is inserted automatically when : is pressed from visual mode. So it boils down to visual mode, select, :normal . <CR>

You can have any ranges you want.

    :15,49normal .<CR>
I have a shortcut for visual range defined in my vimrc

    vnoremap . :normal . <CR>

There are no comments on this comment yet.