GOLF(2gg)

NAME
syntax-highlighting - Golf documentation (language)

DESCRIPTION
For syntax highlighting of Golf programs in Vim, do this once:

        gg -m

The above will create a syntax file in your local Vim syntax directory:

        $HOME/.vim/syntax/golf.vim

and also update your local $HOME/.vimrc file to use this syntax for files with .golf extension. All files updated are local, i.e. they affect only the current user. Each user who wants this feature must issue the above command.

You can then change the color scheme to anything you like by using ":colorscheme" directly in editor, or by specifying "colorscheme" in your ".vimrc" file for a persistent change.

The Golf highlighting syntax is tested with Vim 8.1.

SEE ALSO
 Language

inline-code statements syntax-highlighting unused-var variable-scope See all documentation