GOLF(2gg)

πŸ“¦ version 601.4.41, in ubuntu questing

✨ GOLF(2gg) ✨

ok so bestie, this is the Golf manual page, section 2gg, filed under Development. she's cute, she's short, she's here to get your editor looking stunning πŸ’…


πŸŽ€ NAME πŸŽ€

syntax-highlighting β€” Golf documentation (language) πŸ¦‹


🌸 DESCRIPTION 🌸

so like. you wanna have your Golf programs looking pretty in Vim? say less. you run this one single time:

gg -m

and that's it, that's the whole thing, no cap ✨

what does that do for you, you ask? it creates a syntax file in your local Vim syntax directory, which lives riiiight here:

$HOME/.vim/syntax/golf.vim

and ALSO β€” not me multitasking 😭 β€” it updates your local $HOME/.vimrc file so that this syntax gets used for files with the .golf extension. the way that it handles both files at once? iconic.

ok important detail tho, bestie, listen: all files updated are local. like, they affect only the current user. so every single user who wants this feature has to run that command themselves β€” it's not a group thing, it's a you thing 🫢

once you've done that, you can switch up the color scheme to literally anything you want πŸ’– two ways to do it:

  • do it straight in the editor with ":colorscheme"
  • or drop "colorscheme" into your ".vimrc" file if you want the change to stick around forever (persistent, lowkey commitment energy πŸ‘‘)

oh and btw, the Golf highlighting syntax is tested with Vim 8.1. just so you know what you're working with πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

  • Language
  • inline-code statements syntax-highlighting unused-var variable-scope β€” yeah, all of those, they're all right there
  • See all documentation πŸ“š

k that's the whole page, bestie, mwah πŸ’œ

this absolute gem was served up in version $VERSION on $DATE, and yes, it's still living under the GOLF(2gg) banner. go run gg -m and make your terminal pretty fr fr πŸŽ€βœ¨

πŸ“¦ where this page comes from