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.
979981Note: These environment variables resolve symbolic links, but 'rtp' does not.
980982
981983
0 commit comments