2 ms·
What I do regularly is to record a macro that combines some action with a movement. For example, I have some file with many many lines that need to be changed i
by Derbasti 15y ago
What I do regularly is to record a macro that combines some action with a movement. For example, I have some file with many many lines that need to be changed in a very similar fashion. (Recent example: ten comma separated numbers per line, all wrong by a factor of ten, 100 lines of those).
I will record that macro, then repeat it 100 times. Since every command includes a movement at the end (say, a "j"), this will change 100 lines (or words, or regex finds, or whatever).
Damn, I instinctively hit <ESC> after writing that last line.