Skip to content

Commit db832e6

Browse files
1 parent 2b8725d commit db832e6

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

filetype.html

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
helpname: 'filetype'
44
---
55
<div id='vimCodeElement'>
6-
<a class="Constant" href="filetype.html" name="filetype.txt">filetype.txt</a>&nbsp;&nbsp;For&nbsp;<span class="Identifier">Vim version 9.1.</span>&nbsp;&nbsp;Last change: 2024 Apr 18<br>
6+
<a class="Constant" href="filetype.html" name="filetype.txt">filetype.txt</a>&nbsp;&nbsp;For&nbsp;<span class="Identifier">Vim version 9.1.</span>&nbsp;&nbsp;Last change: 2024 May 21<br>
77
<br>
88
<br>
99
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Identifier">VIM REFERENCE MANUAL&nbsp;&nbsp;&nbsp;&nbsp;by Bram Moolenaar</span><br>
@@ -894,6 +894,31 @@
894894
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;let g:no_vim_maps = 1</div>
895895
<br>
896896
<br>
897+
<span class="Statement">ZIG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><a class="Constant" href="filetype.html#ft-zig-plugin" name="ft-zig-plugin">ft-zig-plugin</a><br>
898+
<br>
899+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="Constant" href="filetype.html#g:zig_recommended_style" name="g:zig_recommended_style">g:zig_recommended_style</a><br>
900+
By default the following indentation options are set, in accordance with Zig's<br>
901+
recommended style (<span class="Constant"><a href="https://ziglang.org/documentation/master/">https://ziglang.org/documentation/master/</a></span>):<br>
902+
<br>
903+
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8</div>
904+
<br>
905+
To disable this behavior, set&nbsp;<a class="Identifier" href="filetype.html#g:zig_recommended_style">g:zig_recommended_style</a>&nbsp;to 0:<br>
906+
<br>
907+
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;let g:zig_recommended_style = 0</div>
908+
<br>
909+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="Constant" href="filetype.html#g:zig_std_dir" name="g:zig_std_dir">g:zig_std_dir</a><br>
910+
The path to the Zig standard library. The Zig&nbsp;<a class="Identifier" href="usr_51.html#ftplugin">ftplugin</a>&nbsp;reads&nbsp;<a class="Identifier" href="filetype.html#g:zig_std_dir">g:zig_std_dir</a><br>
911+
and appends it to the&nbsp;<a class="Type" href="options.html#'path'">'path'</a>&nbsp;for Zig files. Where the Zig standard library<br>
912+
is located is system and installation method dependent.<br>
913+
<br>
914+
One can automatically set&nbsp;<a class="Identifier" href="filetype.html#g:zig_std_dir">g:zig_std_dir</a>&nbsp;using&nbsp;<span class="Comment">zig env</span>:<br>
915+
<br>
916+
<div class="helpExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;let g:zig_std_dir = json_decode(system('zig env'))['std_dir']</div>
917+
<br>
918+
This can, for example, be put in a FileType&nbsp;<a class="Identifier" href="autocmd.html#:autocmd">:autocmd</a>&nbsp;or user&nbsp;<a class="Identifier" href="usr_51.html#ftplugin">ftplugin</a>&nbsp;to<br>
919+
only load when a Zig file is opened.<br>
920+
<br>
921+
<br>
897922
<span class="Statement">ZIMBU&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><a class="Constant" href="filetype.html#ft-zimbu-plugin" name="ft-zimbu-plugin">ft-zimbu-plugin</a><br>
898923
<br>
899924
The Zimbu filetype plugin defines mappings to move to the start and end of<br>

tags.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7876,6 +7876,7 @@
78767876
<a class="Identifier" href="syntax.html#ft-xpm-syntax">ft-xpm-syntax</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; syntax.txt<br>
78777877
<a class="Identifier" href="indent.html#ft-yaml-indent">ft-yaml-indent</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;indent.txt<br>
78787878
<a class="Identifier" href="syntax.html#ft-yaml-syntax">ft-yaml-syntax</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;syntax.txt<br>
7879+
<a class="Identifier" href="filetype.html#ft-zig-plugin">ft-zig-plugin</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; filetype.txt<br>
78797880
<a class="Identifier" href="filetype.html#ft-zimbu-plugin">ft-zimbu-plugin</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; filetype.txt<br>
78807881
<a class="Identifier" href="syntax.html#ft-zsh-syntax">ft-zsh-syntax</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; syntax.txt<br>
78817882
<a class="Identifier" href="ft_ada.html">ft_ada.txt</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ft_ada.txt<br>
@@ -8174,6 +8175,8 @@
81748175
<a class="Identifier" href="syntax.html#g:vimsyn_minlines">g:vimsyn_minlines</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; syntax.txt<br>
81758176
<a class="Identifier" href="syntax.html#g:vimsyn_noerror">g:vimsyn_noerror</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;syntax.txt<br>
81768177
<a class="Identifier" href="syntax.html#g:yaml_schema">g:yaml_schema</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; syntax.txt<br>
8178+
<a class="Identifier" href="filetype.html#g:zig_recommended_style">g:zig_recommended_style</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; filetype.txt<br>
8179+
<a class="Identifier" href="filetype.html#g:zig_std_dir">g:zig_std_dir</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; filetype.txt<br>
81778180
<a class="Identifier" href="pi_zip.html#g:zipPlugin_ext">g:zipPlugin_ext</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pi_zip.txt<br>
81788181
<a class="Identifier" href="pi_zip.html#g:zip_exec">g:zip_exec</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pi_zip.txt<br>
81798182
<a class="Identifier" href="pi_zip.html#g:zip_extractcmd">g:zip_extractcmd</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pi_zip.txt<br>

0 commit comments

Comments
 (0)