Skip to content

Commit 3fe4d5b

Browse files
authored
Merge pull request #1679 from vim-jp/hh-update-starting
Update starting.{txt,jax}
2 parents b05493e + d88cc21 commit 3fe4d5b

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

doc/starting.jax

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*starting.txt* For Vim バージョン 9.1. Last change: 2024 Aug 03
1+
*starting.txt* For Vim バージョン 9.1. Last change: 2024 Sep 05
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -808,7 +808,7 @@ Evimでは以下のオプションが標準設定から変更される:
808808

809809
Vimが "-u filename" で起動された場合、デフォルトのvimrcの代わりに
810810
"filename" が使われる。続く初期化処理の4.までがスキップされる。
811-
$MYVIMRC は設定されない。
811+
$MYVIMRC および $MYVIMDIR は設定されない。
812812
"vim -u NORC" によりファイルを読み込むことなくこれらの初期化を省略する
813813
ことができる。"vim -u NONE" を使用するとさらにプラグインも読み込まな
814814
い。|-u|
@@ -827,11 +827,12 @@ Evimでは以下のオプションが標準設定から変更される:
827827
コマンドを追加する。Macintosh では $VIMRUNTIME/macmap.vim が読み込まれ
828828
る。
829829

830-
*VIMINIT* *.vimrc* *_vimrc* *EXINIT* *.exrc* *_exrc* *$MYVIMRC*
830+
*VIMINIT* *.vimrc* *_vimrc* *EXINIT* *.exrc* *_exrc* *$MYVIMRC* *$MYVIMDIR*
831831
c. 初期化のために5つの場所が検索される。最初に見つかったものが使用され、
832-
残りは無視される。ここまでで環境変数 $MYVIMRC が設定されていなく、
833-
VIMINIT を使っていないなら、$MYVIMRC に最初にみつかったファイルが設定
834-
される。
832+
残りは無視される。環境変数 $MYVIMRC は、$MYVIMRC がすでに設定されてい
833+
る場合、および VIMINIT を使用している場合を除き、最初に見つかったファ
834+
イルに設定される。環境変数 $MYVIMDIR は、個人の 'rtp' ディレクトリに設
835+
定されるが、そのディレクトリが実際に存在するかどうかは検証されない。
835836
I 環境変数VIMINIT(|compatible-default|も参照) (*)
836837
その内容はExコマンドとして解釈される。
837838
II ユーザーvimrcファイル:
@@ -947,7 +948,9 @@ Evimでは以下のオプションが標準設定から変更される:
947948
|v:vim_did_enter| 変数が 1 にセットされる。
948949
|VimEnter|のautocommandが実行される。
949950

950-
最初に見つかった vimrc、gvimrc が $MYVIMRC、$MYGVIMRC に設定される。
951+
$MYVIMRC または $MYGVIMRC は、最初に見つかった vimrc ファイル、gvimrc ファイル
952+
に設定され、$MYVIMDIR はユーザーの個人用ランタイムディレクトリ 'rtp' (通常は
953+
'runtimepath' の最初のエントリ) に設定される。
951954

952955

953956
初期化のヒント ~

en/starting.txt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*starting.txt* For Vim version 9.1. Last change: 2024 Aug 03
1+
*starting.txt* For Vim version 9.1. Last change: 2024 Sep 05
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -828,8 +828,8 @@ 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 is not
832-
set.
831+
All following initializations until 4. are skipped. $MYVIMRC and
832+
$MYVIMDIR are not set.
833833
"vim -u NORC" can be used to skip these initializations without
834834
reading a file. "vim -u NONE" also skips loading plugins. |-u|
835835

@@ -847,11 +847,13 @@ accordingly. Vim proceeds in this order:
847847
'compatible' is only done later. Add a ":set nocp" command if you
848848
like. For the Macintosh the $VIMRUNTIME/macmap.vim is read.
849849

850-
*VIMINIT* *.vimrc* *_vimrc* *EXINIT* *.exrc* *_exrc* *$MYVIMRC*
850+
*VIMINIT* *.vimrc* *_vimrc* *EXINIT* *.exrc* *_exrc* *$MYVIMRC* *$MYVIMDIR*
851851
c. Five places are searched for initializations. The first that exists
852852
is used, the others are ignored. The $MYVIMRC environment variable is
853853
set to the file that was first found, unless $MYVIMRC was already set
854-
and when using VIMINIT.
854+
and when using VIMINIT. The $MYVIMDIR environment variable is
855+
set to the personal 'rtp' directory, however it is not verified
856+
that the directory actually exists.
855857
I The environment variable VIMINIT (see also |compatible-default|) (*)
856858
The value of $VIMINIT is used as an Ex command line.
857859
II The user vimrc file(s):
@@ -971,7 +973,8 @@ accordingly. Vim proceeds in this order:
971973
The |VimEnter| autocommands are executed.
972974

973975
The $MYVIMRC or $MYGVIMRC file will be set to the first found vimrc and/or
974-
gvimrc file.
976+
gvimrc file while $MYVIMDIR is set to the users personal runtime directory
977+
'rtp' (typically the first entry in 'runtimepath').
975978

976979

977980
Some hints on using initializations ~

0 commit comments

Comments
 (0)