diff --git a/doc/filetype.jax b/doc/filetype.jax index 853994a47..b28932ff6 100644 --- a/doc/filetype.jax +++ b/doc/filetype.jax @@ -1,4 +1,4 @@ -*filetype.txt* For Vim バージョン 9.1. Last change: 2024 Nov 14 +*filetype.txt* For Vim バージョン 9.1. Last change: 2024 Dec 04 VIMリファレンスマニュアル by Bram Moolenaar @@ -625,7 +625,7 @@ GDSCRIPT *ft-gdscript-plugin* let g:gdscript_recommended_style = 0 -GIT COMMIT *ft-gitcommit-plugin* +GIT COMMIT *ft-gitcommit-plugin* 現在のコミットの差分をプレビューウィンドウに表示する :DiffGitCached というコマ ンドが提供されている。このコマンドを実行すると、その引数をつけて "git diff @@ -721,7 +721,6 @@ Markdown コメントの認識を有効にするには、`8.2.1397` 以降のバ は "javaformat.vim" を手動で再読込みすることを忘れないこと: > runtime autoload/javaformat.vim < - JSON-FORMAT *ft-json-plugin* JSON ファイルタイプは、JSON のフォーマッティング (|gq| を使用) に 'formatexpr' @@ -733,6 +732,11 @@ JSON ファイルタイプは、JSON のフォーマッティング (|gq| を使 import autoload 'dist/json.vim' setl formatexpr=json.FormatExpr() +LUA *ft-lua-plugin* + +|fold-expr| を使用して Lua 関数の折り畳みを有効にするには: > + + let g:lua_folding = 1 MAIL *ft-mail-plugin* @@ -806,7 +810,7 @@ CTRL-T 直前のマニュアルページへ戻る。 set keywordprg=:Man -MANPAGER *manpager.vim* +MANPAGER *manpager.vim* |:Man| コマンドを使うと、Vim をマンページにできる(その構文はマンページをハイラ イト表示し、CTRL-] でヒットしたリンク先のマンページをたどる)。 @@ -825,7 +829,7 @@ fish の場合、設定ファイルに以下の設定を追加する。 set -x MANPAGER "vim +MANPAGER --not-a-term -" -MARKDOWN *ft-markdown-plugin* +MARKDOWN *ft-markdown-plugin* 折り畳みを有効にするには、次のようにする: > let g:markdown_folding = 1 @@ -905,7 +909,7 @@ RESTRUCTUREDTEXT *ft-rst-plugin* let g:rst_style = 1 -RNOWEB *ft-rnoweb-plugin* +RNOWEB *ft-rnoweb-plugin* 'formatexpr' オプションは、R コードと LaTeX コードに対して異なる値で動的に設定 される。'formatexpr' を設定しないことを希望する場合は、|vimrc| に以下を追加す diff --git a/en/filetype.txt b/en/filetype.txt index 06fc82923..cbf038afd 100644 --- a/en/filetype.txt +++ b/en/filetype.txt @@ -1,4 +1,4 @@ -*filetype.txt* For Vim version 9.1. Last change: 2024 Nov 14 +*filetype.txt* For Vim version 9.1. Last change: 2024 Dec 04 VIM REFERENCE MANUAL by Bram Moolenaar @@ -634,7 +634,7 @@ To disable this behavior, set the following variable in your vimrc: > let g:gdscript_recommended_style = 0 -GIT COMMIT *ft-gitcommit-plugin* +GIT COMMIT *ft-gitcommit-plugin* One command, :DiffGitCached, is provided to show a diff of the current commit in the preview window. It is equivalent to calling "git diff --cached" plus @@ -733,7 +733,6 @@ To enable the recognition of Markdown comments each time after removing re-source "javaformat.vim" for Vim versions greater than `8.2.1397`: > runtime autoload/javaformat.vim < - JSON-FORMAT *ft-json-plugin* JSON filetype can be extended to use 'formatexpr' and "json.FormatExpr()" @@ -745,6 +744,11 @@ Add following lines to $HOME/.vim/ftplugin/json.vim: > import autoload 'dist/json.vim' setl formatexpr=json.FormatExpr() +LUA *ft-lua-plugin* + +You can enable folding of Lua functions using |fold-expr| by: > + + let g:lua_folding = 1 MAIL *ft-mail-plugin* @@ -816,7 +820,7 @@ page in a Vim window: > set keywordprg=:Man -MANPAGER *manpager.vim* +MANPAGER *manpager.vim* The |:Man| command allows you to turn Vim into a manpager (that syntax highlights manpages and follows linked manpages on hitting CTRL-]). @@ -834,7 +838,7 @@ For fish, add to the config file set -x MANPAGER "vim +MANPAGER --not-a-term -" -MARKDOWN *ft-markdown-plugin* +MARKDOWN *ft-markdown-plugin* To enable folding use this: > let g:markdown_folding = 1 @@ -913,7 +917,7 @@ To enable this behavior, set the following variable in your vimrc: > let g:rst_style = 1 -RNOWEB *ft-rnoweb-plugin* +RNOWEB *ft-rnoweb-plugin* The 'formatexpr' option is set dynamically with different values for R code and for LaTeX code. If you prefer that 'formatexpr' is not set, add to your