3 ms·
> 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
by irahul 14y ago
> 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>