diff options
author | James McCoy <jamessan@jamessan.com> | 2018-12-15 23:40:41 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2018-12-16 12:05:47 -0500 |
commit | 314f6ea3678c09f9824242a10abbe4a2fb2ccff3 (patch) | |
tree | 0bdefbad663adcc958bba2c14fdd4cdd6480fcd5 /runtime | |
parent | 5e8f2048b5e7a3b06a6529283791f7030521f8a2 (diff) | |
download | rneovim-314f6ea3678c09f9824242a10abbe4a2fb2ccff3.tar.gz rneovim-314f6ea3678c09f9824242a10abbe4a2fb2ccff3.tar.bz2 rneovim-314f6ea3678c09f9824242a10abbe4a2fb2ccff3.zip |
startup: Use $XDG_CONFIG_DIRS/nvim/sysinit.vim if it exists
Closes #8994
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/starting.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/doc/starting.txt b/runtime/doc/starting.txt index 450d2967b4..82e73035d8 100644 --- a/runtime/doc/starting.txt +++ b/runtime/doc/starting.txt @@ -436,10 +436,11 @@ accordingly. Vim proceeds in this order: If Vim was started in Ex mode with the "-s" argument, all following initializations until 4. are skipped. Only the "-u" option is interpreted. - *system-vimrc* - a. For Unix, MS-Windows, and Macintosh, the system vimrc file is read for - initializations. The path of this file is shown with the - ":version" command. Mostly it's "$VIM/vimrc". + *system-vimrc* *sysinit.vim* + a. The system vimrc file is read for initializations. If + nvim/sysinit.vim file exists in one of $XDG_CONFIG_DIRS, it will be + used. Otherwise, the system vimrc file is used. The path of this file + is shown with the ":version" command. Mostly it's "$VIM/sysinit.vim". *VIMINIT* *EXINIT* *$MYVIMRC* b. Four places are searched for initializations. The first that exists |