I've had some issues lately reconciling my .vimrc with files in ftplugin and after/ftplugin. In what order are all these things read?For example: when I call in my .vimrc the command plugin filetype on, is the filetype program read immediately, or after the rest of .vimrc is read? Furthermore, I'm guessing the order is that first Vim checks for a .vim/ftplugin/myfiletype.vim file before loading the default myfiletype.vim in $VIMRUNTIME, if it found nothing then runs the default file, and then checks for fies in .vim/after/ftplugin?Also when set syntax=myfiletypesyntax is called, are those lines read immediately or at the end of file?
In what order does Vim read ftplugin files, syntax files, and the .vimrc when the commands (e.g. set syntax=mysyntax, filetype plugin on) are called?
vimrc;filetype;plugin system