1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 22:20:06 +08:00

Add simple_mode option

This commit is contained in:
wsdjeg 2017-01-11 15:40:19 +08:00
parent 19e2a53f0c
commit 030ac0e119
3 changed files with 52 additions and 5 deletions

View File

@ -3,6 +3,8 @@
" @stylized Maktaba
" @library
" @order intro version dicts functions exceptions layers
" SpaceVim is a Modular configuration, a bundle of custom settings
" and plugins, for Vim. It got inspired by spacemacs.
""
" Version of SpaceVim , this value can not be changed.
@ -76,9 +78,18 @@ let g:spacevim_vim_help_language = 'en'
" The colorscheme of SpaceVim, if colorscheme groups are installed.
let g:spacevim_colorscheme = 'gruvbox'
""
" The default colorscheme of SpaceVim.
" The default colorscheme of SpaceVim. By default SpaceVim use desert, if
" colorscheme which name is the value of g:spacevim_colorscheme has not been
" installed.you can change it in custom config file.
" >
" let g:spacevim_colorscheme_default = 'other_color'
" <
let g:spacevim_colorscheme_default = 'desert'
""
" Disable/Enable simple mode of SpaceVim, in this mode, only few plugins will be
" installed.
let g:spacevim_simple_mode = 0
""
" The default file manager of SpaceVim.
let g:spacevim_filemanager = 'vimfiler'
""
@ -194,7 +205,15 @@ endfunction
""
" @section Layers, layers
" SpaceVim support such layers:
" SpaceVim support such layers:
"
" core : core plugins for SpaceVim.
"
" autocompletion : Plugins for autocompletion,
"
" maker : syntax checker
"
" unite : unite centric work-flow
""
@ -244,7 +263,11 @@ endfunction
function! SpaceVim#default() abort
call SpaceVim#default#SetOptions()
call SpaceVim#default#SetPlugins()
if g:spacevim_simple_mode
call SpaceVim#default#UseSimpleMode()
else
call SpaceVim#default#SetPlugins()
endif
call SpaceVim#default#SetMappings()
endfunction

View File

@ -393,3 +393,7 @@ fu! s:tobur(num) abort
endif
endif
endf
function! SpaceVim#default#UseSimpleMode() abort
endfunction

View File

@ -11,6 +11,9 @@ CONTENTS *SpaceVim-contents*
==============================================================================
INTRODUCTION *SpaceVim-intro*
SpaceVim is a Modular configuration, a bundle of custom settings and
plugins, for Vim. It got inspired by spacemacs.
==============================================================================
CONFIGURATION *SpaceVim-config*
@ -71,7 +74,16 @@ The error symbol used by maker.
The colorscheme of SpaceVim, if colorscheme groups are installed.
*g:spacevim_colorscheme_default*
The default colorscheme of SpaceVim.
The default colorscheme of SpaceVim. By default SpaceVim use desert, if
colorscheme which name is the value of g:spacevim_colorscheme has not been
installed.you can change it in custom config file.
>
let g:spacevim_colorscheme_default = 'other_color'
<
*g:spacevim_simple_mode*
Disable/Enable simple mode of SpaceVim, in this mode, only few plugins will be
installed.
*g:spacevim_filemanager*
The default file manager of SpaceVim.
@ -168,7 +180,15 @@ SpaceVim#logger#setOutput({file}) *SpaceVim#logger#setOutput()*
==============================================================================
LAYERS *SpaceVim-layers*
SpaceVim support such layers:
SpaceVim support such layers:
core : core plugins for SpaceVim.
autocompletion : Plugins for autocompletion,
maker : syntax checker
unite : unite centric work-flow
vim:tw=78:ts=8:ft=help:norl: