syntax-highlighting - Golf documentation (language)
Contents
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.
Name
syntax-highlighting - Golf documentation (language)
See Also
Language
inline-codestatementssyntax-highlightingunused-varvariable-scope See all documentation
$DATE $VERSION GOLF(2gg)
