diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-17 17:40:10 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-17 17:40:10 +0200 |
commit | 518d733369fb6f2e4652e9649a78546ce6493079 (patch) | |
tree | 4fe3bbecd68b2270fb6949e0862154198108015b /plugin | |
parent | 00213842594d8262c35b64b03b176d6e831a6e94 (diff) | |
download | vim-polyglot-518d733369fb6f2e4652e9649a78546ce6493079.tar.gz vim-polyglot-518d733369fb6f2e4652e9649a78546ce6493079.zip |
Make sure custom scripts.vim are respected as well
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/polyglot.vim | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugin/polyglot.vim b/plugin/polyglot.vim index 7cfa1069..27e12b77 100644 --- a/plugin/polyglot.vim +++ b/plugin/polyglot.vim @@ -1,3 +1,9 @@ -if !exists("did_load_polyglot") +" Turn on filetype plugins (:help filetype-plugin). +if has('autocmd') && !(exists("did_load_filetypes") && exists("did_indent_on")) filetype plugin indent on endif + +" Enable syntax highlighting. +if has('syntax') && !exists('g:syntax_on') + syntax enable +endif |