3 ms·
Recent, massive productivity increases for me: - discovering errorformat and using error format and quickfix to solve the complains a style checking tool outpu
by tetha 17y ago
Recent, massive productivity increases for me:
- discovering errorformat and using error format and quickfix to solve the complains a style checking tool outputs. This turned 'look in file. unterstand filename and line number and remember the reason, enter long path, navigate to line, fix reason' to ':cn, read reason, fix reason, :w, goto 1', and (opposed to some IDE), I can still focus on getting things done first and then fixing style issues.
- registers and macros. Recently, I had a number of similar fixes to do, even though it was not entirely trivial to describe those fixes with a regular expression. However, it was possible to describe the sequence of operations as a number of vim movements and vim operations. Thus, I could record the editing of a single file into a macro and just apply this macro to each file. This turned around 30-40 minutes of annoying things into like 5 minutes.
- after case b, learning about arglists and argdo, which would have cut down the time required for the change to a few seconds, opposed to several minutes.
Those are just from the top of my head.