1
- *filetype.txt* For Vim version 9.1. Last change: 2024 Apr 09
1
+ *filetype.txt* For Vim version 9.1. Last change: 2024 Jul 16
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -149,6 +149,7 @@ variables can be used to overrule the filetype used for certain extensions:
149
149
*.csh g:filetype_csh | ft-csh-syntax |
150
150
*.dat g:filetype_dat
151
151
*.def g:filetype_def
152
+ *.dsp g:filetype_dsp
152
153
*.f g:filetype_f | ft-forth-syntax |
153
154
*.frm g:filetype_frm | ft-form-syntax |
154
155
*.fs g:filetype_fs | ft-forth-syntax |
@@ -452,6 +453,18 @@ To disable folding everything under the title use this: >
452
453
let asciidoc_fold_under_title = 0
453
454
454
455
456
+ ARDUINO *ft-arduino-plugin*
457
+
458
+ By default the following options are set, in accordance with the default
459
+ settings of Arduino IDE: >
460
+
461
+ setlocal expandtab tabstop=2 softtabstop=2 shiftwidth=2
462
+
463
+ To disable this behavior, set the following variable in your vimrc: >
464
+
465
+ let g:arduino_recommended_style = 0
466
+
467
+
455
468
AWK *ft-awk-plugin*
456
469
457
470
Support for features specific to GNU Awk, like @include, can be enabled by
@@ -610,13 +623,35 @@ any #lang directive overrides, use the following command: >
610
623
let g:freebasic_lang = "fblite"
611
624
612
625
626
+ GDSCRIPT *ft-gdscript-plugin*
627
+
628
+ By default the following options are set, based on Godot official docs: >
629
+
630
+ setlocal noexpandtab softtabstop=0 shiftwidth=0
631
+
632
+ To disable this behavior, set the following variable in your vimrc: >
633
+
634
+ let g:gdscript_recommended_style = 0
635
+
636
+
613
637
GIT COMMIT *ft-gitcommit-plugin*
614
638
615
639
One command, :DiffGitCached, is provided to show a diff of the current commit
616
640
in the preview window. It is equivalent to calling "git diff --cached" plus
617
641
any arguments given to the command.
618
642
619
643
644
+ GO *ft-go-plugin*
645
+
646
+ By default the following options are set, based on Golang official docs: >
647
+
648
+ setlocal noexpandtab softtabstop=0 shiftwidth=0
649
+
650
+ To disable this behavior, set the following variable in your vimrc: >
651
+
652
+ let g:go_recommended_style = 0
653
+
654
+
620
655
GPROF *ft-gprof-plugin*
621
656
622
657
The gprof filetype plugin defines a mapping <C-]> to jump from a function
@@ -627,6 +662,43 @@ The mapping can be disabled with: >
627
662
let g:no_gprof_maps = 1
628
663
629
664
665
+ HARE *ft-hare*
666
+
667
+ Since the text for this plugin is rather long it has been put in a separate
668
+ file: | ft_hare.txt | .
669
+
670
+
671
+ JAVA *ft-java-plugin*
672
+
673
+ Whenever the variable "g:ftplugin_java_source_path" is defined and its value
674
+ is a filename whose extension is either ".jar" or ".zip", e.g.: >
675
+ let g:ftplugin_java_source_path = '/path/to/src.jar'
676
+ let g:ftplugin_java_source_path = '/path/to/src.zip'
677
+ <
678
+ and the | zip | plugin has already been sourced, the | gf | command can be used to
679
+ open the archive and the | n | command can be used to look for the selected type
680
+ and the <Return> key can be used to load a listed file.
681
+
682
+ Note that the effect of using the "gf" command WITHIN a buffer loaded with the
683
+ Zip plugin depends on the version of the Zip plugin. For the Zip plugin
684
+ versions that do not support Jar type archives, consider creating symbolic
685
+ links with the ".zip" extension for each Jar archive of interest and assigning
686
+ any such file to the variable from now on.
687
+
688
+ Otherwise, for the defined variable "g:ftplugin_java_source_path", the local
689
+ value of the 'path' option will be further modified by prefixing the value of
690
+ the variable, e.g.: >
691
+ let g:ftplugin_java_source_path = $JDK_SRC_PATH
692
+ let &l:path = g:ftplugin_java_source_path . ',' . &l:path
693
+ <
694
+ and the "gf" command can be used on a fully-qualified type to look for a file
695
+ in the "path" and to try to load it.
696
+
697
+ Remember to manually trigger the | FileType | event from a buffer with a Java
698
+ file loaded in it each time after assigning a new value to the variable: >
699
+ doautocmd FileType
700
+ <
701
+
630
702
JSON-FORMAT *ft-json-plugin*
631
703
632
704
JSON filetype can be extended to use 'formatexpr' and "json.FormatExpr()"
@@ -836,6 +908,10 @@ You can change the default by defining the variable g:tex_flavor to the format
836
908
let g:tex_flavor = "latex"
837
909
Currently no other formats are recognized.
838
910
911
+ TYPST *ft-typst-plugin*
912
+
913
+ *g:typst_conceal*
914
+ When | TRUE | the Typst filetype plugin will set the 'conceallevel' option to 2.
839
915
840
916
VIM *ft-vim-plugin*
841
917
@@ -846,6 +922,31 @@ The mappings can be disabled with: >
846
922
let g:no_vim_maps = 1
847
923
848
924
925
+ ZIG *ft-zig-plugin*
926
+
927
+ *g:zig_recommended_style*
928
+ By default the following indentation options are set, in accordance with Zig's
929
+ recommended style (https://ziglang.org/documentation/master/ ): >
930
+
931
+ setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
932
+ <
933
+ To disable this behavior, set | g:zig_recommended_style | to 0: >
934
+
935
+ let g:zig_recommended_style = 0
936
+ <
937
+ *g:zig_std_dir*
938
+ The path to the Zig standard library. The Zig | ftplugin | reads | g:zig_std_dir |
939
+ and appends it to the 'path' for Zig files. Where the Zig standard library
940
+ is located is system and installation method dependent.
941
+
942
+ One can automatically set | g:zig_std_dir | using `zig env`: >
943
+
944
+ let g:zig_std_dir = json_decode(system('zig env'))['std_dir']
945
+ <
946
+ This can, for example, be put in a FileType | :autocmd | or user | ftplugin | to
947
+ only load when a Zig file is opened.
948
+
949
+
849
950
ZIMBU *ft-zimbu-plugin*
850
951
851
952
The Zimbu filetype plugin defines mappings to move to the start and end of
0 commit comments