aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/starting.txt
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2022-01-17 14:11:59 -0700
committerGitHub <noreply@github.com>2022-01-17 14:11:59 -0700
commitfcf5dd34fdfde3a6632b96a88f66c1053cba08d1 (patch)
tree941f2e41b681d26429fe1ae9c6276a4c7519512b /runtime/doc/starting.txt
parentad2dbd4b5f2cfa740e373fff0e021e2163909cfb (diff)
downloadrneovim-fcf5dd34fdfde3a6632b96a88f66c1053cba08d1.tar.gz
rneovim-fcf5dd34fdfde3a6632b96a88f66c1053cba08d1.tar.bz2
rneovim-fcf5dd34fdfde3a6632b96a88f66c1053cba08d1.zip
refactor: enable filetype detection before user startup scripts (#17040)
Diffstat (limited to 'runtime/doc/starting.txt')
-rw-r--r--runtime/doc/starting.txt20
1 files changed, 11 insertions, 9 deletions
diff --git a/runtime/doc/starting.txt b/runtime/doc/starting.txt
index bb775ec884..7c4b684ca4 100644
--- a/runtime/doc/starting.txt
+++ b/runtime/doc/starting.txt
@@ -409,7 +409,17 @@ accordingly, proceeding as follows:
4. Setup |default-mappings| and |default-autocmds|.
-5. Load user config (execute Ex commands from files, environment, …).
+5. Enable filetype and indent plugins.
+ This does the same as the command: >
+ :filetype plugin indent on
+< which in turn is equivalent to: >
+ :runtime! filetype.lua
+ :runtime! filetype.vim
+ :runtime! ftplugin.vim
+ :runtime! indent.vim
+< Skipped if the "-u NONE" command line argument was given.
+
+6. Load user config (execute Ex commands from files, environment, …).
$VIMINIT environment variable is read as one Ex command line (separate
multiple commands with '|' or <NL>).
*config* *init.vim* *init.lua* *vimrc* *exrc*
@@ -453,14 +463,6 @@ accordingly, proceeding as follows:
- The file ".nvimrc"
- The file ".exrc"
-6. Enable filetype and indent plugins.
- This does the same as the commands: >
- :runtime! filetype.vim
- :runtime! ftplugin.vim
- :runtime! indent.vim
-< Skipped if ":filetype … off" was called or if the "-u NONE" command
- line argument was given.
-
7. Enable syntax highlighting.
This does the same as the command: >
:runtime! syntax/syntax.vim