Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/euro20179/advent-of-code-2024
https://github.com/euro20179/advent-of-code-2024
advent-of-code advent-of-code-2024 aoc2024
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/euro20179/advent-of-code-2024
- Owner: Euro20179
- Created: 2024-12-01T16:31:19.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2024-12-01T16:56:05.000Z (about 1 month ago)
- Last Synced: 2024-12-01T17:35:15.362Z (about 1 month ago)
- Topics: advent-of-code, advent-of-code-2024, aoc2024
- Language: Vim Script
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
───────────────────────────────────── Aoc ─────────────────────────────────────
I wanted try doing aoc in viml this year because viml is fun.
And you can do some crazy stuff,I've devised a poing system to encourage the use of text editing commands
as apposed to just using basic functions and for loops== Challenge
The challenge will be to do it in as few readable lines as possible.
a "readable line" is a line that is < 80 chars.
Line
\\ continutations, count as 2 lines== Point system
For every line subtract 1 point
For every ex command that exists [here] | https://www.gnu.org/software/emacs/manual/html_node/vip/Ex-Command-Reference.html |
Add 1 point
Using an old ex command in a non-old ex command does not count
eg: `execute p`
using an old ex command within an old ex command counts as 1 point
eg: `g/hi/p`for each range/address used add 1 point
eg: `2,3s/a/b/`
eg: `%s/a/b/`Combining lines is only allowed if the ideas are related,
eg: `w | q` saves and exits
`let x = 3 | 1d` do 2 completely different things, and is disallowed