I've had some issues reconciling my .vimrc with files in ftplugin and after/ftplugin. In what order are they all read?
For example: When vim encounters the line plugin filetype on in a .vimrc file, is the filetype program read immediately, or after the rest of .vimrc executes? Further, am I correct in assuming that vim checks for a .vim/ftplugin/filetype.vim file before loading the "default" $VIMRUNTIME/ftplugin/filetype.vim (only running the default file if no user version is found), then checks for files in .vim/after/ftplugin?
:scriptnamesto see a list of every single file that has been sourced, and the order it was sourced in. – DJMcMayhem Jul 16 '16 at 19:23.vimrctext? – Luke Davis Jul 16 '16 at 19:42:h syntax-loading– Christian Brabandt Jul 16 '16 at 19:45