doc/c3.txt
raw
1*c3.txt* For Vim version 9.0. Last change: 2024 May 15
2
3C3 LANGUAGE SUPPORT *c3*
4
5INTRODUCTION *c3-intro*
6
7This plugin provides syntax highlighting, filetype detection,
8and compiler support for the C3 programming language.
9
10FEATURES *c3-features*
11
12- Filetype detection (*.c3)
13- Syntax highlighting
14- Indentation (C-style)
15- Compiler integration (:compiler c3c)
16- Basic buffer-local settings
17
18USAGE *c3-usage*
19
20The plugin automatically detects .c3 files and sets the filetype to 'c3'.
21
22COMPILER SUPPORT *c3-compiler*
23
24To use the compiler integration, run:
25>
26 :compiler c3c
27 :make
28<
29This sets 'makeprg' to 'c3c' and configures the 'errorformat' to
30properly parse C3 compiler errors.
31
32SETTINGS *c3-settings*
33
34The plugin sets the following buffer-local options for C3 files:
35
36- 'shiftwidth' to 4
37- 'tabstop' to 4
38- 'softtabstop' to 4
39- 'expandtab'
40- 'commentstring' to // %s
41
42vim:tw=78:ts=8:ft=help:norl: