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?
:scriptnames
to see a list of every single file that has been sourced, and the order it was sourced in..vimrc
text?:h syntax-loading