File: syntax-highlighting.2gg

package info (click to toggle)
golf 601.4.41-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,824 kB
  • sloc: ansic: 20,020; sh: 1,171; makefile: 292
file content (39 lines) | stat: -rw-r--r-- 962 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.TH GOLF 2gg $VERSION $DATE Development Tools
.SH NAME
syntax-highlighting \- Golf documentation (language)
.SH DESCRIPTION
For syntax highlighting of Golf programs in Vim, do this once:

.RS 4
.EX

gg -m

.EE
.RE

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

.RS 4
.EX

$HOME/.vim/syntax/golf.vim

.EE
.RE

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.
.SH SEE ALSO
 Language

\fBinline-code\fP  
\fBstatements\fP  
\fBsyntax-highlighting\fP  
\fBunused-var\fP  
\fBvariable-scope\fP   
See all 
\fBdocumentation\fP