diff options
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 |