Skip to content

Commit 4d03c93

Browse files
authored
Merge pull request #1469 from vim-jp/hh-update-filetype
Update filetype.{txt,jax}
2 parents cb84228 + d707d68 commit 4d03c93

File tree

2 files changed

+74
-6
lines changed

2 files changed

+74
-6
lines changed

doc/filetype.jax

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*filetype.txt* For Vim バージョン 9.1. Last change: 2023 Dec 05
1+
*filetype.txt* For Vim バージョン 9.1. Last change: 2024 Feb 14
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -154,6 +154,7 @@ NOTE: Vi互換とは全てのオプションがグローバルであることを
154154
*.cls g:filetype_cls
155155
*.csh g:filetype_csh |ft-csh-syntax|
156156
*.dat g:filetype_dat
157+
*.def g:filetype_def
157158
*.f g:filetype_f |ft-forth-syntax|
158159
*.frm g:filetype_frm |ft-form-syntax|
159160
*.fs g:filetype_fs |ft-forth-syntax|
@@ -175,6 +176,7 @@ NOTE: Vi互換とは全てのオプションがグローバルであることを
175176
*.sh g:bash_is_sh |ft-sh-syntax|
176177
*.tex g:tex_flavor |ft-tex-plugin|
177178
*.typ g:filetype_typ
179+
*.v g:filetype_v
178180
*.w g:filetype_w |ft-cweb-syntax|
179181

180182
いくつかのファイル形式のグローバル変数はファイル形式を検知できなかったときのみ
@@ -496,7 +498,7 @@ g:changelog_new_date_format
496498
%% 一つの '%' が入る
497499
%d 上記で定義した日付
498500
%u 上記で定義したユーザーの名前
499-
%p b:changelog_entry_prefix の結果
501+
%p b:changelog_entry_prefix の結果
500502
%c 作成後のカーソルの位置
501503
デフォルトは "%d %u\n\n\t* %p%c\n\n"。これは次のよう
502504
になる ( | はカーソルの位置を示している。しかし、行頭
@@ -508,7 +510,7 @@ g:changelog_new_date_format
508510
g:changelog_new_entry_format
509511
アイテムを作成するときの書式。
510512
次の特別な文字が使える:
511-
%p b:changelog_entry_prefix の結果
513+
%p b:changelog_entry_prefix の結果
512514
%c 作成後のカーソルの位置
513515
デフォルトは "\t*\c"。これは次のようになる >
514516
| * prefix|
@@ -552,6 +554,18 @@ b:changelog_entry_prefix
552554
ムを加える。なければ新しいエントリとアイテムをファイルの先頭に加える。
553555

554556

557+
ASCIIDOC *ft-asciidoc-plugin*
558+
559+
|folding| を有効にするには、これを使用する: >
560+
let g:asciidoc_folding = 1
561+
562+
折り畳まれたヘッダーのネストを無効にするには、これを使用する: >
563+
let g:asciidoc_foldnested = 0
564+
565+
タイトルの下のすべてを折りたたむことを無効にするには、これを使用する: >
566+
let asciidoc_fold_under_title = 0
567+
568+
555569
FORTRAN *ft-fortran-plugin*
556570

557571
オプション:
@@ -600,6 +614,18 @@ gprof ファイルタイププラグインは gprof のフラットプロファ
600614
let g:no_gprof_maps = 1
601615
602616
617+
JSON-FORMAT *ft-json-plugin*
618+
619+
JSON ファイルタイプは、JSON のフォーマッティング (|gq| を使用) に 'formatexpr'
620+
および "json.FormatExpr()" 関数を使用するように拡張できる。
621+
622+
次の行を $HOME/.vim/ftplugin/json.vim に追加する: >
623+
624+
vim9script
625+
import autoload 'dist/json.vim'
626+
setl formatexpr=json.FormatExpr()
627+
628+
603629
MAIL *ft-mail-plugin*
604630

605631
オプション:
@@ -761,6 +787,14 @@ RESTRUCTUREDTEXT *ft-rst-plugin*
761787
let g:rst_style = 1
762788
763789
790+
RNOWEB *ft-rnoweb-plugin*
791+
792+
'formatexpr' オプションは、R コードと LaTeX コードに対して異なる値で動的に設定
793+
される。'formatexpr' を設定しないことを希望する場合は、|vimrc| に以下を追加す
794+
る: >
795+
let rnw_dynamic_comments = 0
796+
797+
764798
RPM SPEC *ft-spec-plugin*
765799

766800
このプラグインに関する説明は非常に多いので、別のファイル |pi_spec.txt| に記述

en/filetype.txt

Lines changed: 37 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: 2023 Dec 05
1+
*filetype.txt* For Vim version 9.1. Last change: 2024 Feb 14
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -148,6 +148,7 @@ variables can be used to overrule the filetype used for certain extensions:
148148
*.cls g:filetype_cls
149149
*.csh g:filetype_csh |ft-csh-syntax|
150150
*.dat g:filetype_dat
151+
*.def g:filetype_def
151152
*.f g:filetype_f |ft-forth-syntax|
152153
*.frm g:filetype_frm |ft-form-syntax|
153154
*.fs g:filetype_fs |ft-forth-syntax|
@@ -169,6 +170,7 @@ variables can be used to overrule the filetype used for certain extensions:
169170
*.sh g:bash_is_sh |ft-sh-syntax|
170171
*.tex g:tex_flavor |ft-tex-plugin|
171172
*.typ g:filetype_typ
173+
*.v g:filetype_v
172174
*.w g:filetype_w |ft-cweb-syntax|
173175

174176
For a few filetypes the global variable is used only when the filetype could
@@ -494,7 +496,7 @@ g:changelog_new_date_format
494496
%% insert a single '%' character
495497
%d insert the date from above
496498
%u insert the user from above
497-
%p insert result of b:changelog_entry_prefix
499+
%p insert result of b:changelog_entry_prefix
498500
%c where to position cursor when done
499501
The default is "%d %u\n\n\t* %p%c\n\n", which produces
500502
something like (| is where cursor will be, unless at
@@ -508,7 +510,7 @@ g:changelog_new_entry_format
508510
The format used when creating a new entry.
509511
The following table describes special tokens in the
510512
string:
511-
%p insert result of b:changelog_entry_prefix
513+
%p insert result of b:changelog_entry_prefix
512514
%c where to position cursor when done
513515
The default is "\t*%c", which produces something
514516
similar to >
@@ -562,6 +564,18 @@ under it. If not found, a new entry and item is prepended to the beginning of
562564
the Changelog.
563565

564566

567+
ASCIIDOC *ft-asciidoc-plugin*
568+
569+
To enable |folding| use this: >
570+
let g:asciidoc_folding = 1
571+
572+
To disable nesting of folded headers use this: >
573+
let g:asciidoc_foldnested = 0
574+
575+
To disable folding everything under the title use this: >
576+
let asciidoc_fold_under_title = 0
577+
578+
565579
FORTRAN *ft-fortran-plugin*
566580

567581
Options:
@@ -610,6 +624,18 @@ The mapping can be disabled with: >
610624
let g:no_gprof_maps = 1
611625
612626
627+
JSON-FORMAT *ft-json-plugin*
628+
629+
JSON filetype can be extended to use 'formatexpr' and "json.FormatExpr()"
630+
function for json formatting (using |gq|).
631+
632+
Add following lines to $HOME/.vim/ftplugin/json.vim: >
633+
634+
vim9script
635+
import autoload 'dist/json.vim'
636+
setl formatexpr=json.FormatExpr()
637+
638+
613639
MAIL *ft-mail-plugin*
614640

615641
Options:
@@ -767,6 +793,14 @@ To enable this behavior, set the following variable in your vimrc: >
767793
let g:rst_style = 1
768794
769795
796+
RNOWEB *ft-rnoweb-plugin*
797+
798+
The 'formatexpr' option is set dynamically with different values for R code
799+
and for LaTeX code. If you prefer that 'formatexpr' is not set, add to your
800+
|vimrc|: >
801+
let rnw_dynamic_comments = 0
802+
803+
770804
RPM SPEC *ft-spec-plugin*
771805

772806
Since the text for this plugin is rather long it has been put in a separate

0 commit comments

Comments
 (0)