1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:30:07 +08:00
SpaceVim/doc/SpaceVim.txt

148 lines
5.1 KiB
Plaintext
Raw Normal View History

2016-12-31 19:07:05 +08:00
*SpaceVim.txt* Like spacemacs, but for vim
wsdjeg *SpaceVim*
==============================================================================
CONTENTS *SpaceVim-contents*
2017-01-02 10:38:23 +08:00
1. Introduction.............................................|SpaceVim-intro|
2. Configuration...........................................|SpaceVim-config|
3. Functions............................................|SpaceVim-functions|
==============================================================================
INTRODUCTION *SpaceVim-intro*
SpaceVim is a modular configuration for vim/neovim plugins.
2016-12-31 19:07:05 +08:00
==============================================================================
CONFIGURATION *SpaceVim-config*
2017-01-02 10:38:23 +08:00
SpaceVim is configured by these options.
2017-01-04 23:53:49 +08:00
*g:spacevim_version*
Version of SpaceVim , this value can not be changed.
*g:spacevim_default_indent*
2017-01-03 00:27:11 +08:00
Change the default indent of SpaceVim. default is 2.
>
let g:spacevim_default_indent = 2
<
2016-12-31 19:07:05 +08:00
2016-12-31 19:40:08 +08:00
*g:spacevim_max_column*
2017-01-03 00:27:11 +08:00
Change the max column of SpaceVim, default is 120.
>
let g:spacevim_max_column = 120
<
*g:spacevim_enable_guicolors*
Enable true color support in terminal.
>
let g:spacevim_enable_guicolors = 1
<
2017-01-03 00:27:11 +08:00
*g:spacevim_enable_googlesuggest*
Enable/Disable google suggestion for neocomplete. by default it is Disabled.
you can enable it by:
>
let g:spacevim_enable_googlesuggest = 1
<
2016-12-31 19:40:08 +08:00
*g:spacevim_plugin_bundle_dir*
Set the cache dir of plugins, by default, it is `~/.cache/vimfiles`. you can
set it by:
>
let g:spacevim_plugin_bundle_dir = '~/.cache/vimplugs'
<
2016-12-31 23:09:52 +08:00
*g:spacevim_guifont*
set the guifont of Spacevim, default is empty.
2016-12-31 19:40:08 +08:00
*g:spacevim_enable_ycm*
Enable ycm or not, but default it is 0.
*g:spacevim_error_symbol*
The error symbol used by maker.
2016-12-31 20:05:52 +08:00
*g:spacevim_colorscheme*
The colorscheme of SpaceVim, if colorscheme groups are installed.
*g:spacevim_colorscheme_default*
The default colorscheme of SpaceVim.
*g:spacevim_filemanager*
The default file manager of SpaceVim.
*g:spacevim_plugin_manager*
The default plugin manager of SpaceVim, dein, neobundle or vim-plug. by
default it is dein.
2017-01-06 21:42:33 +08:00
*g:spacevim_checkinstall*
Enable/Disable checkinstall on SpaceVim startup. by default is 1.
2017-01-06 21:42:33 +08:00
To disable it:
2017-01-06 21:42:33 +08:00
>
let g:spacevim_checkinstall = 0
2017-01-06 21:42:33 +08:00
<
2017-01-08 16:27:18 +08:00
*g:spacevim_enable_debug*
Enable/Disable debug mode for SpaceVim, by default it is disabled.
to enable it:
>
let g:spacevim_enable_debug = 1
<
2017-01-08 23:02:49 +08:00
*g:spacevim_debug_level*
Set the debug level of SpaceVim, by default it is 1.
2017-01-01 21:31:57 +08:00
*g:spacevim_plugin_groups*
groups of plugins should be loaded.
example:
>
let g:spacevim_plugin_groups = ['core', 'lang']
<
now Space Vim support these groups:
2017-01-05 21:16:45 +08:00
*g:spacevim_disabled_plugins*
Disable plugins by names. example:
>
let g:spacevim_disabled_plugins = ['vim-foo', 'vim-bar']
<
2017-01-02 10:38:23 +08:00
*g:spacevim_enable_powerline_fonts*
enable/disable SpaceVim with powerline symbols.
2017-01-07 23:01:13 +08:00
*g:spacevim_lint_on_save*
Enable/Disable lint on save feature of SpaceVim's maker.
To disable lint on save:
>
let g:spacevim_lint_on_save = 0
<
2016-12-31 20:05:52 +08:00
*g:spacevim_hosts_url*
The host file url. this option is for chinese users who can not use google and
twitter.
2016-12-31 19:07:05 +08:00
==============================================================================
FUNCTIONS *SpaceVim-functions*
2017-01-02 12:32:26 +08:00
SpaceVim#Layer({layer}) *SpaceVim#Layer()*
2017-01-02 16:02:54 +08:00
Load the {layer} you want : autocompletion : Make SpaceVim support
autocompletion. unite : Unite centric work-flow
2016-12-31 19:07:05 +08:00
2017-01-08 16:27:18 +08:00
SpaceVim#logger#setLevel({level}) *SpaceVim#logger#setLevel()*
2017-01-08 18:38:45 +08:00
Set debug level of SpaceVim, by default it is 1. all message will be logged.
2017-01-08 16:27:18 +08:00
2017-01-08 18:38:45 +08:00
1 : log all the message.
2017-01-08 16:27:18 +08:00
2017-01-08 18:38:45 +08:00
2 : log warning and error message
2017-01-08 16:27:18 +08:00
2017-01-08 18:38:45 +08:00
3 : log error message only
2017-01-08 16:27:18 +08:00
SpaceVim#logger#setOutput({file}) *SpaceVim#logger#setOutput()*
Set log output file of SpaceVim. by default it is
`~/.SpaceVim/.SpaceVim.log`
2016-12-31 19:07:05 +08:00
vim:tw=78:ts=8:ft=help:norl: