From 0c6e8c3152c9a7a7c765621639e344d171089fb8 Mon Sep 17 00:00:00 2001 From: h-east Date: Thu, 18 Jun 2026 08:10:11 +0900 Subject: [PATCH] Update filetype.{txt,jax} --- doc/filetype.jax | 56 +++++++++++++++++++++++++++++++++++++++++++++- en/filetype.txt | 58 +++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 112 insertions(+), 2 deletions(-) diff --git a/doc/filetype.jax b/doc/filetype.jax index 868e2ad91..19d28168a 100644 --- a/doc/filetype.jax +++ b/doc/filetype.jax @@ -1,4 +1,4 @@ -*filetype.txt* For Vim バージョン 9.2. Last change: 2026 May 29 +*filetype.txt* For Vim バージョン 9.2. Last change: 2026 Jun 17 VIM リファレンスマニュアル by Bram Moolenaar @@ -189,6 +189,7 @@ NOTE: Vi互換とは全てのオプションがグローバルであることを *.sys g:filetype_sys *.sh g:bash_is_sh |ft-sh-syntax| *.tex g:tex_flavor |ft-tex-plugin| + *.tf g:filetype_tf *.typ g:filetype_typ *.v g:filetype_v *.w g:filetype_w |ft-cweb-syntax| @@ -485,6 +486,59 @@ AWK *ft-awk-plugin* @include のような、GNU Awk 固有の機能のサポートは、以下の設定で有効にできる: > :let g:awk_is_gawk = 1 +BEANCOUNT *ft-beancount-plugin* + +Beancount のオムニ補完機能 |compl-omni| は、g:beancount_completion_enable で有 +効にすると、beancountcomplete.vim によって提供される。 + +アカウント名の自動入力を有効にするには、以下を設定する: > + let g:beancount_completion_enable = 1 +< +Note これを有効にすると、Beancount が追加のプラグインファイルを読み込む可能性 +がある。信頼できるコードに対してのみ有効にすること。 + +変数: +g:beancount_account_completion + アカウント名の補完パターン形式を指定する。"default" ま + たは "chunks" のいずれかを指定できる。 + デフォルト値: "default" + +g:beancount_completion_enable + アカウントに対してオムニ補完 |compl-omni| を有効にする。 + デフォルト値: 0 + +g:beancount_detailed_first + ゼロ以外の場合、階層の下位にあるアカウントが完了済みと + して最初に表示される。 + デフォルト値: 0 + +g:beancount_separator_col + 小数点区切り文字が配置されるカラム。 + デフォルト値: 50 + +b:beancount_root + ルート Beancount ファイルを設定する。これは、補完に必 + 要な値を取得するために使用される。 + 設定しない場合 (デフォルト)、現在のファイルが使用され + る。 + + +コマンド: +:AlignCommodity アカウントと商品の間にスペースを追加することで、商品の + 小数点がすべて g:beancount_separator_col で指定された + カラムに収まるようにする。金額に小数点がない場合は、最 + 下位桁の右側に仮想の小数点が配置される。 + + このコマンドは範囲を指定して実行する。デフォルトでは現 + 在の行が範囲となる。カーソルがその範囲内にあり、かつア + カウント名の右側にある場合、カーソルは同じ文字の位置を + 維持するように適切な量だけ右に移動する。 + + このスクリプトは、位置合わせにスペースを使用することを + 前提としている。タブは認識しない。 + +:GetContext bean-doctor のコンテキストを使用して、現在の行のコンテ + キストを表示する。 CHANGELOG *ft-changelog-plugin* diff --git a/en/filetype.txt b/en/filetype.txt index a9a0e9220..61c72fffa 100644 --- a/en/filetype.txt +++ b/en/filetype.txt @@ -1,4 +1,4 @@ -*filetype.txt* For Vim version 9.2. Last change: 2026 May 29 +*filetype.txt* For Vim version 9.2. Last change: 2026 Jun 17 VIM REFERENCE MANUAL by Bram Moolenaar @@ -183,6 +183,7 @@ variables can be used to overrule the filetype used for certain extensions: *.sys g:filetype_sys *.sh g:bash_is_sh |ft-sh-syntax| *.tex g:tex_flavor |ft-tex-plugin| + *.tf g:filetype_tf *.typ g:filetype_typ *.v g:filetype_v *.w g:filetype_w |ft-cweb-syntax| @@ -482,6 +483,61 @@ Support for features specific to GNU Awk, like @include, can be enabled by setting: > :let g:awk_is_gawk = 1 +BEANCOUNT *ft-beancount-plugin* + +Beancount omni-completion |compl-omni| is provided by beancountcomplete.vim, +if enabled with g:beancount_completion_enable. + +To enable completion of account names, set: > + let g:beancount_completion_enable = 1 +< +Note: Enabling this may cause beancount to load additional plugin files. Only +enable for code you trust. + +Variables: +g:beancount_account_completion + Specify the completion pattern format for the account + name. Can be either "default" or "chunks". + Default value: "default" + +g:beancount_completion_enable + Enable omni-completion |compl-omni| for accounts. + Default value: 0 + +g:beancount_detailed_first + If non-zero, accounts higher down the hierarchy will + be listed first as completions. + Default value: 0 + +g:beancount_separator_col + The column that the decimal separator is aligned to. + Default value: 50 + +b:beancount_root + Set the root Beancount file. This is used to gather + values for the completion. + If not set (default), the current file will be used. + + +Commands: +:AlignCommodity Adds spaces between an account and commodity so that + the decimal points of the commodities all occur in the + column given by g:beancount_separator_col. If an + amount has no decimal point, the imaginary decimal + point to the right of the least significant digit will + align. + + The command acts on a range, with the default being + the current line. If the cursor happens to be inside + that range and to the right of the account name, the + cursor will be pushed to the right the appropriate + amount, so that it remains on the same character. + + The script assumes the use of spaces for alignment. + It does not understand tabs. + +:GetContext Uses bean-doctor context to display the context of the + current line. CHANGELOG *ft-changelog-plugin*