I'm seeing how far I can get through Advent of Code using only Vim's editing commands. No Vimscript, variables, or function calls allowed! (Use of the expression register is also STRICTLY limited. I employed it to do adding in some early solutions, but anything more complex is a no-no.)
Solutions are notated using the standard notation used in Vim mappings and documentation. Ctrl-A is notated as <C-A>
, Escape as <Esc>
, Return as <CR>
, etc.
But if a line starts with a colon, then it's an entire ex command: press Enter at the end of the line.
Otherwise, linebreaks aren't meaningful: they're just inserted at places that felt "natural" to me.
Note that I'm well aware the same techniques could be streamlined considerably: my intention with these is — hard as this may be to believe — to aim for clarity over efficiency. I'm not golfing here!