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

@@ -100,6 +100,12 @@
# define VIMRC_FILE ".nvimrc"
#endif
typedef enum {
kNone = -1,
kFalse = 0,
kTrue = 1,
} TriState;
/* Values for "starting" */
#define NO_SCREEN 2 /* no screen updating yet */
#define NO_BUFFERS 1 /* not all buffers loaded yet */