We're substituting and macro-ing and appending matches to registers all the way to the bank. Since I use NeoVim, I had to turn off the inccommand behavior to get this one to work, due to problems with not being able to completely reset the value in the "a" register.
Puzzle: https://adventofcode.com/2022/day/10
My Solution: https://github.com/denvaar/advent_of_code_2022/blob/main/day_10/vim/solution_explanation.txt
- 0:00 Intro and Puzzle Summary
- 2:37 Make line numbers respect cycle time
- 3:34 Prepare numbers for the expression register
- 4:32 Figure out how to select the desired numbers
- 7:25 Sum using expression register
- 8:54 Create a macro to streamline everything
- 11:42 Final touches