Back to Browse

Problem Solving with Vim - 7

2.9K views
Aug 26, 2023
13:02

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

Download

0 formats

No download links available.

Problem Solving with Vim - 7 | NatokHD