diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-02-14 17:20:55 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-02-14 17:20:55 -0500 |
commit | e3bf1385e69911e39c3f3a753d4c7db936328d7c (patch) | |
tree | 8ee4ddef759fd8b995ca5672eaf9bd537faa4dd5 /src/nvim/main.c | |
parent | 75f6817a5161949ca2ab08e36b8e0772b8d7da16 (diff) | |
parent | cc2dce45d09fab2ec2269924942fdca7d5643e63 (diff) | |
download | rneovim-e3bf1385e69911e39c3f3a753d4c7db936328d7c.tar.gz rneovim-e3bf1385e69911e39c3f3a753d4c7db936328d7c.tar.bz2 rneovim-e3bf1385e69911e39c3f3a753d4c7db936328d7c.zip |
Merge pull request #4252 from justinmk/filetype
defaults: Enable filetypes, syntax
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index a8c2cebbbd..d3cdfe3edf 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -332,6 +332,14 @@ int main(int argc, char **argv) /* Source startup scripts. */ source_startup_scripts(¶ms); + // If using the runtime (-u is not NONE), enable syntax & filetype plugins. + if (params.use_vimrc != NULL && strcmp(params.use_vimrc, "NONE") != 0) { + // Does ":filetype plugin indent on". + filetype_maybe_enable(); + // Sources syntax/syntax.vim, which calls `:filetype on`. + syn_maybe_on(); + } + /* * Read all the plugin files. * Only when compiled with +eval, since most plugins need it. |