|
1 |
| -*filetype.txt* For Vim version 9.1. Last change: 2025 Apr 16 |
| 1 | +*filetype.txt* For Vim version 9.1. Last change: 2025 Apr 27 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -153,7 +153,11 @@ variables can be used to overrule the filetype used for certain extensions:
|
153 | 153 | *.f g:filetype_f |ft-forth-syntax|
|
154 | 154 | *.frm g:filetype_frm |ft-form-syntax|
|
155 | 155 | *.fs g:filetype_fs |ft-forth-syntax|
|
156 |
| - *.h g:c_syntax_for_h |ft-c-syntax| |
| 156 | + *.h g:c_syntax_for_h |ft-c-syntax| (deprecated) |
| 157 | + *.h g:ch_syntax_for_h |ft-ch-syntax| (deprecated) |
| 158 | + *.h g:filetype_h |ft-c-syntax| |
| 159 | + |ft-ch-syntax| |
| 160 | + |ft-cpp-syntax| |
157 | 161 | *.i g:filetype_i |ft-progress-syntax|
|
158 | 162 | *.inc g:filetype_inc
|
159 | 163 | *.lsl g:filetype_lsl
|
@@ -265,7 +269,7 @@ D. If your filetype can only be detected by inspecting the contents of the
|
265 | 269 | item of the 'runtimepath' option. Example for Unix: >
|
266 | 270 | :!mkdir ~/.vim
|
267 | 271 | <
|
268 |
| - 2. Create a vim script file for doing this. Example: > |
| 272 | + 2. Create a Vim script file for doing this. Example: > |
269 | 273 | if did_filetype() " filetype already set..
|
270 | 274 | finish " ..don't do these checks
|
271 | 275 | endif
|
@@ -1039,6 +1043,13 @@ functions with [[ and ]]. Move around comments with ]" and [".
|
1039 | 1043 | The mappings can be disabled with: >
|
1040 | 1044 | let g:no_vim_maps = 1
|
1041 | 1045 |
|
| 1046 | +YAML *ft-yaml-plugin* |
| 1047 | +By default, the YAML filetype plugin enables the following options: > |
| 1048 | + setlocal shiftwidth=2 softtabstop=2 |
| 1049 | +
|
| 1050 | +To disable this, set the following variable: > |
| 1051 | + let g:yaml_recommended_style = 0 |
| 1052 | +
|
1042 | 1053 |
|
1043 | 1054 | ZIG *ft-zig-plugin*
|
1044 | 1055 |
|
|
0 commit comments