From d2cdd0014a24dec60e397115668de565816cdb65 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 6 Jan 2013 21:57:14 -0500 Subject: [PATCH] Support stripped down versions of Vim Closes #6. --- plugin/sensible.vim | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plugin/sensible.vim b/plugin/sensible.vim index fe973b6..a3e5ad1 100644 --- a/plugin/sensible.vim +++ b/plugin/sensible.vim @@ -3,11 +3,14 @@ if exists('g:loaded_sensible') || &compatible finish +else + let g:loaded_sensible = 1 endif -let g:loaded_sensible = 1 -filetype plugin indent on -if !exists('g:syntax_on') +if has('autocmd') + filetype plugin indent on +endif +if has('syntax') && !exists('g:syntax_on') syntax enable endif