Daily routines with Vim help
As a software developer I occasionally encounter tasks which require some text processing. Lucklily, Vim provides a large amount of commands to help doing it with joy.
Sorting CI/CD stages time spent
Our jenkins CI/CD pipeline shows output results in the following format:
Task Duration
-------------------------------------------------------------------------------
[task name] hh:MM:ss.fffffff
So, when total build time exceeds expectations I like to see which task slows
down the process. Normally I would use :sort
, however it sorts text
lexicographically. To cope with this we need to move duration column to the
leftmost side by using visual block mode
and then proceed with :sort
.
The whole process you can see below by clicking on the expand button