Hacker News new | ask | show | jobs
by aoloe 3161 days ago
it depends on what you want to do... but my general reflex is:

- go to line 3

- start recording a temporary macro ("qq" in my habits)

- do the editing

- stop the macro ("q")

- go to the line 16 with 16gg and reply the macro with @q - 39gg@q

- 50gg@q

- ...

1 comments

this. Macros are something I've never used in other editors, but in vim they're simply... fun to use.

Well, if used for the right purpose.