startup: Avoid VimL global. Introduce TriState enum.

- `syntax_on` is documented. Rather than introduce a new undocumented
  VimL global `g:syntax_off`, use a module-local flag.
- Rename "maybe" functions to follow style guidelines (use standard
  module prefix)
This commit is contained in:
Justin M. Keyes
2016-02-14 15:14:38 -05:00
parent 6c9c08c370
commit cc2dce45d0
5 changed files with 45 additions and 42 deletions

View File

@@ -24,9 +24,6 @@ augroup END
if exists("syntax_on")
unlet syntax_on
else
" only used when starting, to disable the default syntax enable
let syntax_off = 1
endif
if exists("syntax_manual")
unlet syntax_manual