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
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -828,8 +828,9 @@ accordingly. Vim proceeds in this order:
828
828
easy to copy it to another system.
829
829
830
830
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).
833
834
"vim -u NORC" can be used to skip these initializations without
834
835
reading a file. "vim -u NONE" also skips loading plugins. | -u |
835
836
@@ -850,9 +851,9 @@ accordingly. Vim proceeds in this order:
850
851
*VIMINIT* *.vimrc* *_vimrc* *EXINIT* *.exrc* *_exrc*
851
852
*$MYVIMRC* *$MYVIMDIR*
852
853
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
856
857
set to the personal 'rtp' directory, however it is not verified
857
858
that the directory actually exists.
858
859
I The environment variable VIMINIT (see also | compatible-default | ) (*)
@@ -973,9 +974,10 @@ accordingly. Vim proceeds in this order:
973
974
The | v:vim_did_enter | variable is set to 1.
974
975
The | VimEnter | autocommands are executed.
975
976
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.
979
981
Note: These environment variables resolve symbolic links, but 'rtp' does not.
980
982
981
983
0 commit comments