2016-12-31 19:07:05 +08:00
|
|
|
*SpaceVim.txt* Like spacemacs, but for vim
|
2017-01-11 01:03:52 +08:00
|
|
|
wsdjeg *Maktaba* *SpaceVim*
|
2016-12-31 19:07:05 +08:00
|
|
|
|
|
|
|
==============================================================================
|
|
|
|
CONTENTS *SpaceVim-contents*
|
2017-01-02 10:38:23 +08:00
|
|
|
1. Introduction.............................................|SpaceVim-intro|
|
|
|
|
2. Configuration...........................................|SpaceVim-config|
|
|
|
|
3. Functions............................................|SpaceVim-functions|
|
2017-01-11 01:03:52 +08:00
|
|
|
4. Layers..................................................|SpaceVim-layers|
|
2017-01-22 23:20:41 +08:00
|
|
|
5. Colorscheme........................................|SpaceVim-colorscheme|
|
|
|
|
6. Layer_lang_java................................|SpaceVim-layer_lang_java|
|
2017-01-02 10:38:23 +08:00
|
|
|
|
|
|
|
==============================================================================
|
|
|
|
INTRODUCTION *SpaceVim-intro*
|
|
|
|
|
2017-01-11 15:40:19 +08:00
|
|
|
SpaceVim is a Modular configuration, a bundle of custom settings and
|
|
|
|
plugins, for Vim. It got inspired by spacemacs.
|
|
|
|
|
2016-12-31 19:07:05 +08:00
|
|
|
==============================================================================
|
|
|
|
CONFIGURATION *SpaceVim-config*
|
|
|
|
|
2016-12-31 19:24:02 +08:00
|
|
|
*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
|
|
|
|
<
|
|
|
|
|
2017-01-06 19:13:33 +08:00
|
|
|
*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
|
|
|
|
2017-01-11 23:00:28 +08:00
|
|
|
*g:spacevim_windows_leader*
|
|
|
|
Windows function leader of SpaceVim, default is `s`, set to empty to disable
|
|
|
|
this feature, or you can set to other char.
|
|
|
|
>
|
|
|
|
let g:spacevim_windows_leader = ''
|
|
|
|
<
|
|
|
|
|
|
|
|
*g:spacevim_unite_leader*
|
|
|
|
Unite work flow leader of SpaceVim, default is `f`, set to empty to disable
|
|
|
|
this feature, or you can set to other char.
|
|
|
|
|
2017-01-03 22:56:34 +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'
|
|
|
|
<
|
|
|
|
|
2017-01-18 19:42:54 +08:00
|
|
|
*g:spacevim_realtime_leader_guide*
|
|
|
|
Disable/Enable realtime leader guide, by default it is 0. to enable this
|
|
|
|
feature:
|
|
|
|
>
|
|
|
|
let g:spacevim_realtime_leader_guide = 1
|
|
|
|
<
|
|
|
|
|
2016-12-31 23:09:52 +08:00
|
|
|
*g:spacevim_guifont*
|
|
|
|
set the guifont of Spacevim, default is empty.
|
2017-01-11 01:03:52 +08:00
|
|
|
>
|
|
|
|
let g:spacevim_guifont = 'DejaVu\ Sans\ Mono\ for\ Powerline\ 11'
|
|
|
|
<
|
2016-12-31 23:09:52 +08:00
|
|
|
|
2016-12-31 19:40:08 +08:00
|
|
|
*g:spacevim_enable_ycm*
|
|
|
|
Enable ycm or not, but default it is 0.
|
2017-01-11 01:03:52 +08:00
|
|
|
>
|
|
|
|
let g:spacevim_enable_ycm = 1
|
|
|
|
<
|
|
|
|
|
|
|
|
*g:spacevim_enable_cursorline*
|
|
|
|
Enable cursorline
|
|
|
|
>
|
|
|
|
let g:spacevim_enable_cursorline = 1
|
|
|
|
<
|
2016-12-31 19:40:08 +08:00
|
|
|
|
|
|
|
*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*
|
2017-01-11 15:40:19 +08:00
|
|
|
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.
|
2017-01-11 20:47:23 +08:00
|
|
|
>
|
|
|
|
let g:spacevim_simple_mode = 1
|
|
|
|
<
|
2016-12-31 20:05:52 +08:00
|
|
|
|
|
|
|
*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*
|
2017-01-07 01:18:10 +08:00
|
|
|
Enable/Disable checkinstall on SpaceVim startup. by default is 1.
|
2017-01-06 21:42:33 +08:00
|
|
|
|
2017-01-07 01:18:10 +08:00
|
|
|
To disable it:
|
2017-01-06 21:42:33 +08:00
|
|
|
>
|
2017-01-07 01:18:10 +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-09 22:50:06 +08:00
|
|
|
*g:spacevim_custom_plugins*
|
|
|
|
Add custom plugins
|
|
|
|
>
|
|
|
|
let g:spacevim_custom_plugins = [
|
|
|
|
\ ['plasticboy/vim-markdown', 'on_ft' : 'markdown'],
|
|
|
|
\ ['wsdjeg/GitHub.vim'],
|
|
|
|
\ ]
|
|
|
|
<
|
|
|
|
|
2017-01-10 00:27:52 +08:00
|
|
|
*g:spacevim_force_global_config*
|
|
|
|
SpaceVim will load global config after local config if set to 1. by default it
|
|
|
|
is 0, if you has local config, the global config will not be loaded.
|
|
|
|
>
|
|
|
|
let g:spacevim_force_global_config = 1
|
|
|
|
<
|
|
|
|
|
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-18 20:52:19 +08:00
|
|
|
SpaceVim#layers#load({layer}) *SpaceVim#layers#load()*
|
2017-01-18 20:25:25 +08:00
|
|
|
Load the {layer} you want, for all the layers SpaceVim supported, see
|
|
|
|
|SpaceVim-layers|.
|
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`
|
|
|
|
|
2017-01-11 01:03:52 +08:00
|
|
|
==============================================================================
|
|
|
|
LAYERS *SpaceVim-layers*
|
|
|
|
|
2017-01-11 15:40:19 +08:00
|
|
|
SpaceVim support such layers:
|
|
|
|
|
2017-01-22 23:20:41 +08:00
|
|
|
==============================================================================
|
|
|
|
COLORSCHEME *SpaceVim-colorscheme*
|
|
|
|
|
|
|
|
gruvbox : this is SpaceVim default colorscheme. SpaceVim also support there
|
|
|
|
colorschemes:
|
|
|
|
>
|
|
|
|
hybrid-material
|
|
|
|
solarized
|
|
|
|
<
|
|
|
|
|
|
|
|
==============================================================================
|
|
|
|
LAYER_LANG_JAVA *SpaceVim-layer_lang_java*
|
|
|
|
|
|
|
|
This layer is for java development.
|
|
|
|
>
|
|
|
|
import-mappings:
|
|
|
|
mode key function
|
|
|
|
normal <F4> import class under corsor.
|
|
|
|
insert <F4> import class under corsor.
|
|
|
|
normal <leader>jI import missing classes.
|
|
|
|
normal <leader>jR remove unused imports.
|
|
|
|
normal <leader>ji smart import class under corsor.
|
|
|
|
normal <leader>jii same as <F4>
|
|
|
|
insert <c-j>I import missing imports.
|
|
|
|
insert <c-j>R remove unused imports.
|
|
|
|
insert <c-j>i smart import class under corsor.
|
|
|
|
insert <c-j>ii add import for class under corsor.
|
|
|
|
|
|
|
|
generate-mappings:
|
|
|
|
mode key function
|
|
|
|
normal <leader>jA generate accessors.
|
|
|
|
normal <leader>js generate setter accessor.
|
|
|
|
normal <leader>jg generate getter accessor.
|
|
|
|
normal <leader>ja generate setter and getter accessor.
|
|
|
|
normal <leader>jts generate toString function.
|
|
|
|
normal <leader>jeq generate equals and hashcode function.
|
|
|
|
normal <leader>jc generate constructor.
|
|
|
|
normal <leader>jcc generate default constructor.
|
|
|
|
insert <c-j>s generate setter accessor.
|
|
|
|
insert <c-j>g generate getter accessor.
|
|
|
|
insert <c-j>a generate getter and setter accessor.
|
|
|
|
visual <leader>js generate setter accessor.
|
|
|
|
visual <leader>jg generate getter accessor.
|
|
|
|
visual <leader>ja generate setter and getter acctssor.
|
|
|
|
<
|
|
|
|
|
|
|
|
|
2016-12-31 19:07:05 +08:00
|
|
|
|
|
|
|
vim:tw=78:ts=8:ft=help:norl:
|