Skip to content

Instantly share code, notes, and snippets.

@dpflug
Created April 11, 2018 03:03
Show Gist options
  • Save dpflug/1f04a5334e61a02c7f69bf88fbd380a3 to your computer and use it in GitHub Desktop.
Save dpflug/1f04a5334e61a02c7f69bf88fbd380a3 to your computer and use it in GitHub Desktop.
Stars Without Number Revised pdftotext Background fixing macro set
let @a = 'I====<ESC>A====<ESC>' " Format the header
let @b = 'jjV}kJ' " Re-wrap the paragraph under
let @c = 'j0f-I* <ESC>f-i <Right> <ESC>' " Skill formatter, ensures we're on a line with a hyphen first
let @d = 'jjA::<ESC>@c' " Format "Free Skills"
let @e = 'ma/quick<Enter>dd/0<Enter>Pd}/0<Enter>Pd}''ap' " Gather the "Quick Skills" - The '' is just an escaped single quote to take us back to the a mark
let @f = 'A::<ESC>3@c' " Format "Quick Skills"
let @g = 'O<Enter>[cols="^1,4,^1,4", width="40%"]<Enter>|=====<ESC>0"xY' " Create table header, save table delimiter to register k
let @h = 'jma/grow<Enter>dd''ap/d8<Enter>dd''ajp/learn<Enter>dd''ajjp' " Get our column labels arranged
let @i = '<ESC>''aV/8<Enter>njj:s/^\S/| &<Enter>"xp' " Put in our cell delimiters
let @j = '04t|r<Enter>@j' " Recursive macro to pull the rows out of the blob we're about to make
let @k = 'kV''aJ@j' " Get rid of whitespace by joining all the rows into one line, then laying them out correctly
let @l = 'I| | <ESC>t8bhr<Enter>I| | <ESC>}j' " Handle the longer second set of columns
let @m = '@a@b@d@e@f@g@h@i@k@l@m' " Put it all together and recurse until we're done with this section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment