Skip to content

Commit 6338ba8

Browse files
authored
Merge pull request #1970 from h-east/update-starting
Update starting.{txt,jax}
2 parents 4f287af + 24c43f8 commit 6338ba8

File tree

2 files changed

+24
-19
lines changed

2 files changed

+24
-19
lines changed

doc/starting.jax

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*starting.txt* For Vim バージョン 9.1. Last change: 2024 Dec 19
1+
*starting.txt* For Vim バージョン 9.1. Last change: 2025 Feb 27
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -807,8 +807,9 @@ Evimでは以下のオプションが標準設定から変更される:
807807
ピーするのが容易になる。
808808

809809
Vimが "-u filename" で起動された場合、デフォルトのvimrcの代わりに
810-
"filename" が使われる。続く初期化処理の4.までがスキップされる。
811-
$MYVIMRC および $MYVIMDIR は設定されない。
810+
"filename" が使われる。続く初期化処理の 4. までがスキップされる。
811+
`$MYVIMRC``$MYVIMDIR` は設定されない (ただし、'rtp' が更新されると
812+
`$MYVIMDIR` が設定される)。
812813
"vim -u NORC" によりファイルを読み込むことなくこれらの初期化を省略する
813814
ことができる。"vim -u NONE" を使用するとさらにプラグインも読み込まな
814815
い。|-u|
@@ -830,10 +831,11 @@ Evimでは以下のオプションが標準設定から変更される:
830831
*VIMINIT* *.vimrc* *_vimrc* *EXINIT* *.exrc* *_exrc*
831832
*$MYVIMRC* *$MYVIMDIR*
832833
c. 初期化のために5つの場所が検索される。最初に見つかったものが使用され、
833-
残りは無視される。環境変数 $MYVIMRC は、$MYVIMRC がすでに設定されてい
834-
る場合、および VIMINIT を使用している場合を除き、最初に見つかったファ
835-
イルに設定される。環境変数 $MYVIMDIR は、個人の 'rtp' ディレクトリに設
836-
定されるが、そのディレクトリが実際に存在するかどうかは検証されない。
834+
残りは無視される。環境変数 `$MYVIMRC` は、`$MYVIMRC` がすでに設定され
835+
ている場合、および VIMINIT を使用している場合を除き、最初に見つかった
836+
ファイルに設定される。環境変数 `$MYVIMDIR` は、個人の 'rtp' ディレクト
837+
リに設定されるが、そのディレクトリが実際に存在するかどうかは検証されな
838+
い。
837839
I 環境変数VIMINIT(|compatible-default|も参照) (*)
838840
その内容はExコマンドとして解釈される。
839841
II ユーザーvimrcファイル:
@@ -949,9 +951,10 @@ Evimでは以下のオプションが標準設定から変更される:
949951
|v:vim_did_enter| 変数が 1 にセットされる。
950952
|VimEnter|のautocommandが実行される。
951953

952-
環境変数 $MYVIMRC または $MYGVIMRC は、最初に見つかった vimrc ファイル、gvimrc
953-
ファイルに設定され、$MYVIMDIR はユーザーの個人用ランタイムディレクトリ 'rtp'
954-
(通常は'runtimepath' の最初のエントリ) に設定される。
954+
環境変数 `$MYVIMRC` または `$MYGVIMRC` は、最初に見つかった vimrc ファイル、
955+
gvimrc ファイルに設定され、`$MYVIMDIR` はユーザーの個人用ランタイムディレクトリ
956+
'rtp' (通常は 'runtimepath' の最初のエントリ) に設定される。'rtp' が変更される
957+
と、`$MYVIMDIR` が更新される。
955958
Note: これらの環境変数はシンボリックリンクを解決するが、'rtp' は解決しない。
956959

957960

en/starting.txt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*starting.txt* For Vim version 9.1. Last change: 2024 Dec 19
1+
*starting.txt* For Vim version 9.1. Last change: 2025 Feb 27
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -828,8 +828,9 @@ accordingly. Vim proceeds in this order:
828828
easy to copy it to another system.
829829

830830
If Vim was started with "-u filename", the file "filename" is used.
831-
All following initializations until 4. are skipped. $MYVIMRC and
832-
$MYVIMDIR are not set.
831+
All following initializations until 4. are skipped. `$MYVIMRC` and
832+
`$MYVIMDIR` are not set (but `$MYVIMDIR` will be set, if 'rtp' is
833+
updated).
833834
"vim -u NORC" can be used to skip these initializations without
834835
reading a file. "vim -u NONE" also skips loading plugins. |-u|
835836

@@ -850,9 +851,9 @@ accordingly. Vim proceeds in this order:
850851
*VIMINIT* *.vimrc* *_vimrc* *EXINIT* *.exrc* *_exrc*
851852
*$MYVIMRC* *$MYVIMDIR*
852853
c. Five places are searched for initializations. The first that exists
853-
is used, the others are ignored. The $MYVIMRC environment variable is
854-
set to the file that was first found, unless $MYVIMRC was already set
855-
and when using VIMINIT. The $MYVIMDIR environment variable is
854+
is used, the others are ignored. The `$MYVIMRC` environment variable is
855+
set to the file that was first found, unless `$MYVIMRC` was already set
856+
when using VIMINIT. The `$MYVIMDIR` environment variable is
856857
set to the personal 'rtp' directory, however it is not verified
857858
that the directory actually exists.
858859
I The environment variable VIMINIT (see also |compatible-default|) (*)
@@ -973,9 +974,10 @@ accordingly. Vim proceeds in this order:
973974
The |v:vim_did_enter| variable is set to 1.
974975
The |VimEnter| autocommands are executed.
975976

976-
The $MYVIMRC or $MYGVIMRC environment variable will be set to the first found
977-
vimrc and/or gvimrc file while $MYVIMDIR is set to the users personal runtime
978-
directory 'rtp' (typically the first entry in 'runtimepath').
977+
The `$MYVIMRC` or `$MYGVIMRC` environment variable will be set to the first found
978+
vimrc and/or gvimrc file while `$MYVIMDIR` is set to the users personal runtime
979+
directory 'rtp' (typically the first entry in 'runtimepath'). If 'rtp'
980+
changes, `$MYVIMDIR` will be updated.
979981
Note: These environment variables resolve symbolic links, but 'rtp' does not.
980982

981983

0 commit comments

Comments
 (0)