defaults: Enable syntax and filetype plugins.

This commit is contained in:
Felipe Morales
2015-05-16 04:10:38 -03:00
committed by Justin M. Keyes
parent 75f6817a51
commit 50e129f5a7
5 changed files with 63 additions and 15 deletions

View File

@@ -332,6 +332,14 @@ int main(int argc, char **argv)
/* Source startup scripts. */
source_startup_scripts(&params);
// If using the runtime (-u is not NONE), enable syntax and filetype plugins
if (params.use_vimrc != NULL && strcmp(params.use_vimrc, "NONE") != 0) {
// Do this before syntax/syntax.vim (which calls `:filetype on`).
force_enable_filetype();
// Enable syntax highlighting.
do_source((char_u *)SYNTAX_FILE, false, DOSO_NONE);
}
/*
* Read all the plugin files.
* Only when compiled with +eval, since most plugins need it.