Counting and Calculating with Vim
I was working with a particularly unfriendly SQL dump file which was raising errors indicating that my data had the wrong amount of columns. To figure out what was going on, I used Vim to count the number of columns and then corrected the data using a substitution…