diff --git a/doc/starting.jax b/doc/starting.jax index 9ff64e401..9b7acd8b8 100644 --- a/doc/starting.jax +++ b/doc/starting.jax @@ -1,4 +1,4 @@ -*starting.txt* For Vim バージョン 9.1. Last change: 2024 Dec 19 +*starting.txt* For Vim バージョン 9.1. Last change: 2025 Feb 27 VIMリファレンスマニュアル by Bram Moolenaar @@ -807,8 +807,9 @@ Evimでは以下のオプションが標準設定から変更される: ピーするのが容易になる。 Vimが "-u filename" で起動された場合、デフォルトのvimrcの代わりに - "filename" が使われる。続く初期化処理の4.までがスキップされる。 - $MYVIMRC および $MYVIMDIR は設定されない。 + "filename" が使われる。続く初期化処理の 4. までがスキップされる。 + `$MYVIMRC` と `$MYVIMDIR` は設定されない (ただし、'rtp' が更新されると + `$MYVIMDIR` が設定される)。 "vim -u NORC" によりファイルを読み込むことなくこれらの初期化を省略する ことができる。"vim -u NONE" を使用するとさらにプラグインも読み込まな い。|-u| @@ -830,10 +831,11 @@ Evimでは以下のオプションが標準設定から変更される: *VIMINIT* *.vimrc* *_vimrc* *EXINIT* *.exrc* *_exrc* *$MYVIMRC* *$MYVIMDIR* c. 初期化のために5つの場所が検索される。最初に見つかったものが使用され、 - 残りは無視される。環境変数 $MYVIMRC は、$MYVIMRC がすでに設定されてい - る場合、および VIMINIT を使用している場合を除き、最初に見つかったファ - イルに設定される。環境変数 $MYVIMDIR は、個人の 'rtp' ディレクトリに設 - 定されるが、そのディレクトリが実際に存在するかどうかは検証されない。 + 残りは無視される。環境変数 `$MYVIMRC` は、`$MYVIMRC` がすでに設定され + ている場合、および VIMINIT を使用している場合を除き、最初に見つかった + ファイルに設定される。環境変数 `$MYVIMDIR` は、個人の 'rtp' ディレクト + リに設定されるが、そのディレクトリが実際に存在するかどうかは検証されな + い。 I 環境変数VIMINIT(|compatible-default|も参照) (*) その内容はExコマンドとして解釈される。 II ユーザーvimrcファイル: @@ -949,9 +951,10 @@ Evimでは以下のオプションが標準設定から変更される: |v:vim_did_enter| 変数が 1 にセットされる。 |VimEnter|のautocommandが実行される。 -環境変数 $MYVIMRC または $MYGVIMRC は、最初に見つかった vimrc ファイル、gvimrc -ファイルに設定され、$MYVIMDIR はユーザーの個人用ランタイムディレクトリ 'rtp' -(通常は'runtimepath' の最初のエントリ) に設定される。 +環境変数 `$MYVIMRC` または `$MYGVIMRC` は、最初に見つかった vimrc ファイル、 +gvimrc ファイルに設定され、`$MYVIMDIR` はユーザーの個人用ランタイムディレクトリ +'rtp' (通常は 'runtimepath' の最初のエントリ) に設定される。'rtp' が変更される +と、`$MYVIMDIR` が更新される。 Note: これらの環境変数はシンボリックリンクを解決するが、'rtp' は解決しない。 diff --git a/en/starting.txt b/en/starting.txt index 94ed836fc..ccedc1ad4 100644 --- a/en/starting.txt +++ b/en/starting.txt @@ -1,4 +1,4 @@ -*starting.txt* For Vim version 9.1. Last change: 2024 Dec 19 +*starting.txt* For Vim version 9.1. Last change: 2025 Feb 27 VIM REFERENCE MANUAL by Bram Moolenaar @@ -828,8 +828,9 @@ accordingly. Vim proceeds in this order: easy to copy it to another system. If Vim was started with "-u filename", the file "filename" is used. - All following initializations until 4. are skipped. $MYVIMRC and - $MYVIMDIR are not set. + All following initializations until 4. are skipped. `$MYVIMRC` and + `$MYVIMDIR` are not set (but `$MYVIMDIR` will be set, if 'rtp' is + updated). "vim -u NORC" can be used to skip these initializations without reading a file. "vim -u NONE" also skips loading plugins. |-u| @@ -850,9 +851,9 @@ accordingly. Vim proceeds in this order: *VIMINIT* *.vimrc* *_vimrc* *EXINIT* *.exrc* *_exrc* *$MYVIMRC* *$MYVIMDIR* c. Five places are searched for initializations. The first that exists - is used, the others are ignored. The $MYVIMRC environment variable is - set to the file that was first found, unless $MYVIMRC was already set - and when using VIMINIT. The $MYVIMDIR environment variable is + is used, the others are ignored. The `$MYVIMRC` environment variable is + set to the file that was first found, unless `$MYVIMRC` was already set + when using VIMINIT. The `$MYVIMDIR` environment variable is set to the personal 'rtp' directory, however it is not verified that the directory actually exists. I The environment variable VIMINIT (see also |compatible-default|) (*) @@ -973,9 +974,10 @@ accordingly. Vim proceeds in this order: The |v:vim_did_enter| variable is set to 1. The |VimEnter| autocommands are executed. -The $MYVIMRC or $MYGVIMRC environment variable will be set to the first found -vimrc and/or gvimrc file while $MYVIMDIR is set to the users personal runtime -directory 'rtp' (typically the first entry in 'runtimepath'). +The `$MYVIMRC` or `$MYGVIMRC` environment variable will be set to the first found +vimrc and/or gvimrc file while `$MYVIMDIR` is set to the users personal runtime +directory 'rtp' (typically the first entry in 'runtimepath'). If 'rtp' +changes, `$MYVIMDIR` will be updated. Note: These environment variables resolve symbolic links, but 'rtp' does not.