Skip to content

Commit 846ac4e

Browse files
authored
Merge pull request #2052 from h-east/update-filetype
Update filetype.{txt,jax}
2 parents 234e881 + 8f22f75 commit 846ac4e

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

doc/filetype.jax

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*filetype.txt* For Vim バージョン 9.1. Last change: 2025 Apr 16
1+
*filetype.txt* For Vim バージョン 9.1. Last change: 2025 Apr 27
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -159,7 +159,11 @@ NOTE: Vi互換とは全てのオプションがグローバルであることを
159159
*.f g:filetype_f |ft-forth-syntax|
160160
*.frm g:filetype_frm |ft-form-syntax|
161161
*.fs g:filetype_fs |ft-forth-syntax|
162-
*.h g:c_syntax_for_h |ft-c-syntax|
162+
*.h g:c_syntax_for_h |ft-c-syntax| (非推奨)
163+
*.h g:ch_syntax_for_h |ft-ch-syntax| (非推奨)
164+
*.h g:filetype_h |ft-c-syntax|
165+
|ft-ch-syntax|
166+
|ft-cpp-syntax|
163167
*.i g:filetype_i |ft-progress-syntax|
164168
*.inc g:filetype_inc
165169
*.lsl g:filetype_lsl
@@ -1034,6 +1038,13 @@ Vim ファイルタイププラグインは、[[ および ]] で関数の先頭
10341038
let g:no_vim_maps = 1
10351039
10361040
1041+
YAML *ft-yaml-plugin*
1042+
デフォルトでは、YAML ファイルタイププラグインは以下のオプションを有効にする: >
1043+
setlocal shiftwidth=2 softtabstop=2
1044+
1045+
これを無効にするには、以下の変数を設定する: >
1046+
let g:yaml_recommended_style = 0
1047+
10371048
ZIG *ft-zig-plugin*
10381049

10391050
*g:zig_recommended_style*

en/filetype.txt

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -153,7 +153,11 @@ variables can be used to overrule the filetype used for certain extensions:
153153
*.f g:filetype_f |ft-forth-syntax|
154154
*.frm g:filetype_frm |ft-form-syntax|
155155
*.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|
157161
*.i g:filetype_i |ft-progress-syntax|
158162
*.inc g:filetype_inc
159163
*.lsl g:filetype_lsl
@@ -265,7 +269,7 @@ D. If your filetype can only be detected by inspecting the contents of the
265269
item of the 'runtimepath' option. Example for Unix: >
266270
:!mkdir ~/.vim
267271
<
268-
2. Create a vim script file for doing this. Example: >
272+
2. Create a Vim script file for doing this. Example: >
269273
if did_filetype() " filetype already set..
270274
finish " ..don't do these checks
271275
endif
@@ -1039,6 +1043,13 @@ functions with [[ and ]]. Move around comments with ]" and [".
10391043
The mappings can be disabled with: >
10401044
let g:no_vim_maps = 1
10411045
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+
10421053
10431054
ZIG *ft-zig-plugin*
10441055

0 commit comments

Comments
 (0)