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

1313 lines
46 KiB
Plaintext
Raw Normal View History

2017-02-10 00:02:00 +08:00
*SpaceVim.txt*
/###### /## /##/##
/##__ ## | ## | #|__/
| ## \__/ /###### /###### /####### /######| ## | ##/##/######/####
| ###### /##__ ##|____ ##/##_____//##__ #| ## / ##| #| ##_ ##_ ##
\____ #| ## \ ## /######| ## | ########\ ## ##/| #| ## \ ## \ ##
/## \ #| ## | ##/##__ #| ## | ##_____/ \ ###/ | #| ## | ## | ##
| ######| #######| ######| ######| ####### \ #/ | #| ## | ## | ##
\______/| ##____/ \_______/\_______/\_______/ \_/ |__|__/ |__/ |__/
| ##
| ##
|__/
wsdjeg *spacevim* *SpaceVim*
2016-12-31 19:07:05 +08:00
==============================================================================
CONTENTS *SpaceVim-contents*
2017-01-02 10:38:23 +08:00
1. Introduction.............................................|SpaceVim-intro|
2017-01-27 21:49:05 +08:00
2. CONFIGURATION...........................................|SpaceVim-config|
2017-03-07 23:31:51 +08:00
3. Commands..............................................|SpaceVim-commands|
4. Functions............................................|SpaceVim-functions|
5. Layers..................................................|SpaceVim-layers|
2017-02-08 20:27:27 +08:00
1. Default............................................|SpaceVim-default|
2. autocomplete..................................|SpaceVim-autocomplete|
3. checkers....................................|SpaceVim-layer-checkers|
4. colorscheme....................................|SpaceVim-colorscheme|
2017-03-03 21:54:43 +08:00
5. core#tabline............................|SpaceVim-layer-core-tabline|
6. exprfold....................................|SpaceVim-layer-exprfold|
2017-03-19 16:27:36 +08:00
7. format..............................................|SpaceVim-format|
2018-02-07 13:49:44 +08:00
8. github........................................|SpaceVim-layer-github|
9. incsearch..................................|SpaceVim-layer-incsearch|
10. indentmove...............................|SpaceVim-layer-indentmove|
11. lang#c.......................................|SpaceVim-layer-lang-c|
12. lang#crystal...........................|SpaceVim-layer-lang-crystal|
2018-02-25 21:29:43 +08:00
13. lang#csharp.............................|SpaceVim-layer-lang-csharp|
14. lang#elixir.............................|SpaceVim-layer-lang-elixir|
15. lang#go.....................................|SpaceVim-layer-lang-go|
16. lang#java.................................|SpaceVim-layer-lang-java|
17. lang#julia...............................|SpaceVim-layer-lang-julia|
18. lang#kotlin.............................|SpaceVim-layer-lang-kotlin|
19. lang#lua...................................|SpaceVim-layer-lang-lua|
20. lang#ocaml...............................|SpaceVim-layer-lang-ocaml|
21. lang#php...................................|SpaceVim-layer-lang-php|
22. lang#pony.................................|SpaceVim-layer-lang-pony|
23. lang#puppet.............................|SpaceVim-layer-lang-puppet|
24. lang#python.............................|SpaceVim-layer-lang-python|
25. lang#rust.................................|SpaceVim-layer-lang-rust|
26. lang#scala...............................|SpaceVim-layer-lang-scala|
27. lang#tmux.................................|SpaceVim-layer-lang-tmux|
28. lang#xml...................................|SpaceVim-layer-lang-xml|
29. operator...................................|SpaceVim-layer-operator|
30. shell.........................................|SpaceVim-layer-shell|
31. tmux...........................................|SpaceVim-layer-tmux|
32. tools#dash...............................|SpaceVim-layer-tools-dash|
2017-03-11 20:43:42 +08:00
6. API........................................................|SpaceVim-api|
1. cmdlinemenu................................|SpaceVim-api-cmdlinemenu|
2. data#list....................................|SpaceVim-api-data-list|
2017-07-09 14:44:19 +08:00
3. prompt..........................................|SpaceVim-api-prompt|
4. sid............................................|SpaceVim-api-vim-sid|
5. vim#message................................|SpaceVim-api-vim-message|
2017-03-11 20:43:42 +08:00
7. FAQ........................................................|SpaceVim-faq|
2017-01-02 10:38:23 +08:00
==============================================================================
INTRODUCTION *SpaceVim-intro*
SpaceVim is a bundle of custom settings and plugins with a modular
configuration for Vim. It was inspired by Spacemacs.
2017-01-11 15:40:19 +08:00
2017-01-27 21:49:05 +08:00
2016-12-31 19:07:05 +08:00
==============================================================================
CONFIGURATION *SpaceVim-config*
2017-03-19 22:00:27 +08:00
SpaceVim uses `~/.SpaceVim.d/init.vim` as its default global config file. You
can set all the SpaceVim options and layers in it. `~/.SpaceVim.d/` will also
be added to runtimepath, so you can write your own scripts in it. SpaceVim
also supports local config for each project. Place local config settings in
`.SpaceVim.d/init.vim` in the root directory of your project. `.SpaceVim.d/`
will also be added to runtimepath.
2017-01-27 21:49:05 +08:00
*g:spacevim_version*
Version of SpaceVim , this value can not be changed.
*g:spacevim_default_indent*
Change the default indentation of SpaceVim. Default is 2.
2017-01-03 00:27:11 +08:00
>
let g:spacevim_default_indent = 2
<
2016-12-31 19:07:05 +08:00
2017-06-27 15:31:34 +08:00
*g:spacevim_relativenumber*
Enable/Disable relativenumber, by default it is enabled.
2016-12-31 19:40:08 +08:00
*g:spacevim_max_column*
Change the max number of columns for SpaceVim. Default is 120.
2017-01-03 00:27:11 +08:00
>
let g:spacevim_max_column = 120
<
*g:spacevim_enable_guicolors*
Enable true color support in terminal. Default is 1.
>
let g:spacevim_enable_guicolors = 1
<
2017-01-03 00:27:11 +08:00
*g:spacevim_enable_googlesuggest*
Enable/Disable Google suggestions for neocomplete. Default is 0.
2017-01-03 00:27:11 +08:00
>
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*
Window functions leader for SpaceVim. Default is `s`. Set to empty to disable
this feature, or you can set to another char.
2017-01-11 23:00:28 +08:00
>
let g:spacevim_windows_leader = ''
<
*g:spacevim_unite_leader*
Unite work flow leader of SpaceVim. Default is `f`. Set to empty to disable
2017-03-20 22:45:54 +08:00
this feature, or you can set to another char.
*g:spacevim_denite_leader*
Denite work flow leader of SpaceVim. Default is `F`. Set to empty to disable
this feature, or you can set to another char.
2017-01-11 23:00:28 +08:00
*g:spacevim_enable_insert_leader*
Enable/Disable spacevim's insert mode leader, default is enable
*g:spacevim_plugin_bundle_dir*
Set the cache directory of plugins. Default is `~/.cache/vimfiles`.
>
let g:spacevim_plugin_bundle_dir = '~/.cache/vimplugs'
<
2017-01-18 19:42:54 +08:00
*g:spacevim_realtime_leader_guide*
Enable/Disable realtime leader guide. Default is 1. to disable it:
2017-01-18 19:42:54 +08:00
>
let g:spacevim_realtime_leader_guide = 0
2017-01-18 19:42:54 +08:00
<
2017-04-03 12:52:09 +08:00
*g:spacevim_enable_key_frequency*
2017-04-03 13:12:35 +08:00
Enable/Disable key frequency catching of SpaceVim. default value is 0. to
enable it:
>
let g:spacevim_enable_key_frequency = 1
<
2017-04-03 12:52:09 +08:00
2017-11-23 10:39:06 +08:00
*g:spacevim_autocomplete_method*
Set the autocomplete engine of spacevim, the default logic is:
>
if has('python3')
let g:spacevim_autocomplete_method = 'deoplete'
elseif has('lua')
let g:spacevim_autocomplete_method = 'neocomplete'
elseif has('python')
let g:spacevim_autocomplete_method = 'completor'
elseif has('timers')
let g:spacevim_autocomplete_method = 'asyncomplete'
else
let g:spacevim_autocomplete_method = 'neocomplcache'
endif
<
*g:spacevim_enable_neomake*
SpaceVim default checker is neomake. If you want to use syntastic, use:
>
let g:spacevim_enable_neomake = 0
<
2017-10-25 09:41:04 +08:00
*g:spacevim_enable_ale*
Use ale for syntax checking, disabled by default.
>
let g:spacevim_enable_ale = 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/Disable YouCompleteMe. Default is 0.
2017-01-11 01:03:52 +08:00
>
let g:spacevim_enable_ycm = 1
<
*g:spacevim_sidebar_width*
Set the width of the SpaceVim sidebar. Default is 30. This value will be used
by tagbar and vimfiler.
2017-04-02 19:39:42 +08:00
*g:spacevim_snippet_engine*
Set the snippet engine of SpaceVim, default is neosnippet. to enable
ultisnips:
>
let g:spacevim_snippet_engine = 'ultisnips'
<
2017-01-11 01:03:52 +08:00
*g:spacevim_enable_cursorline*
Enable/Disable cursorline. Default is 1, cursorline will be highlighted in
normal mode.To disable this feature:
2017-01-11 01:03:52 +08:00
>
let g:spacevim_enable_cursorline = 0
<
2017-05-19 20:45:03 +08:00
*g:spacevim_statusline_separator*
Set the statusline separators of statusline, default is 'arrow'
2017-06-21 21:14:30 +08:00
>
Separatos options:
1. arrow
2. curve
3. slant
4. nil
5. fire
<
See more details in: http://spacevim.org/documentation/#statusline
2017-05-19 20:45:03 +08:00
2017-11-19 10:18:32 +08:00
*g:spacevim_statusline_left_sections*
Define the left section of statusline in active windows. By default:
>
let g:spacevim_statusline_left_sections =
\ [
\ 'winnr',
\ 'filename',
\ 'major mode',
\ 'minor mode lighters',
\ 'version control info'
\ ]
<
*g:spacevim_statusline_right_sections*
Define the right section of statusline in active windows. By default:
>
2018-01-18 20:34:43 +08:00
g:spacevim_statusline_right_sections =
\ [
\ 'fileformat',
\ 'cursorpos',
\ 'percentage'
\ ]
2017-11-19 10:18:32 +08:00
<
*g:spacevim_statusline_unicode_symbols*
Enable/Disable unicode symbols in statusline
2018-01-07 12:12:34 +08:00
*g:spacevim_enable_language_specific_leader*
Enable/Disable language specific leader, by default you can use `,` ket
instead of `SPC` `l`.
2017-10-22 22:25:12 +08:00
*g:spacevim_enable_statusline_display_mode*
Enable/Disable display mode. Default is 0, mode will be displayed in
statusline. To enable this feature:
>
let g:spacevim_enable_statusline_display_mode = 1
<
2017-10-23 03:13:42 +08:00
*g:spacevim_custom_color_palette*
2017-10-23 23:14:13 +08:00
Set the statusline/tabline palette of color, default values depends on the
theme
2017-10-23 03:13:42 +08:00
>
let g:spacevim_custom_color_palette = [
2017-10-23 23:14:13 +08:00
\ ['#282828', '#b8bb26', 246, 235],
\ ['#a89984', '#504945', 239, 246],
\ ['#a89984', '#3c3836', 237, 246],
\ ['#665c54', 241],
\ ['#282828', '#83a598', 235, 109],
\ ['#282828', '#fe8019', 235, 208],
\ ['#282828', '#8ec07c', 235, 108],
\ ]
2017-10-23 03:13:42 +08:00
<
2017-10-23 23:14:13 +08:00
*g:spacevim_enable_cursorcolumn*
2017-05-06 20:36:39 +08:00
Enable/Disable cursorcolumn. Default is 0, cursorcolumn will be highlighted in
normal mode. To enable this feature:
>
2017-05-06 20:36:39 +08:00
let g:spacevim_enable_cursorcolumn = 1
2017-01-11 01:03:52 +08:00
<
2016-12-31 19:40:08 +08:00
*g:spacevim_error_symbol*
Set the error symbol for SpaceVim's syntax maker. Default is '✖'.
2017-01-19 20:41:06 +08:00
>
let g:spacevim_error_symbol = '+'
<
*g:spacevim_warning_symbol*
Set the warning symbol for SpaceVim's syntax maker. Default is '⚠'.
2017-01-19 20:41:06 +08:00
>
let g:spacevim_warning_symbol = '!'
<
2017-11-20 20:06:19 +08:00
*g:spacevim_info_symbol*
Set the information symbol for SpaceVim's syntax maker. Default is '🛈'.
>
let g:spacevim_info_symbol = 'i'
<
2017-03-26 16:37:49 +08:00
*g:spacevim_terminal_cursor_shape*
2017-12-10 00:23:18 +08:00
Set the SpaceVim cursor shape in the terminal.
>
0 : to prevent Nvim from changing the cursor shape.
1 : to enable non-blinking mode-sensitive cursor.
2 : to enable blinking mode-sensitive cursor (default).
<
2017-03-26 16:37:49 +08:00
2017-12-10 00:23:18 +08:00
>
<
Host terminal must support the DECSCUSR CSI escape sequence. Depending on the
terminal emulator, using this option with nvim under tmux might require adding
the following to ~/.tmux.conf:
2017-03-26 16:37:49 +08:00
>
set -ga terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'
<
2017-01-19 20:41:06 +08:00
*g:spacevim_vim_help_language*
Set the help language of vim. Default is 'en'. You can change it to Chinese.
2017-01-19 20:41:06 +08:00
>
let g:spacevim_vim_help_language = 'cn'
2017-01-19 20:41:06 +08:00
<
2016-12-31 19:40:08 +08:00
2017-01-30 20:36:03 +08:00
*g:spacevim_language*
Set the message language of vim. Default is 'en_US.UTF-8'.
2017-01-30 20:36:03 +08:00
>
let g:spacevim_language = 'en_CA.utf8'
<
2017-10-04 13:49:14 +08:00
*g:spacevim_keep_server_alive*
Option for keep the spacevim server ailive
2016-12-31 20:05:52 +08:00
*g:spacevim_colorscheme*
The colorscheme of SpaceVim. Default is 'gruvbox'.
2016-12-31 20:05:52 +08:00
2017-04-30 15:34:09 +08:00
*g:spacevim_colorscheme_bg*
The background of colorscheme. Default is 'dark'.
2016-12-31 20:05:52 +08:00
*g:spacevim_colorscheme_default*
The default colorscheme of SpaceVim. Default is 'desert'. This colorscheme
will be used if the colorscheme set by `g:spacevim_colorscheme` is not
installed.
2017-01-11 15:40:19 +08:00
>
let g:spacevim_colorscheme_default = 'other_color'
<
*g:spacevim_simple_mode*
Enable/disable simple mode of SpaceVim. Default is 0. 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. Default is 'vimfiler'.
2016-12-31 20:05:52 +08:00
*g:spacevim_plugin_manager*
The default plugin manager of SpaceVim. Default is 'dein'. Options are dein,
neobundle, or vim-plug.
2016-12-31 20:05:52 +08:00
2017-04-04 23:01:41 +08:00
*g:spacevim_plugin_manager_max_processes*
Set the max process of SpaceVim plugin manager
2017-01-06 21:42:33 +08:00
*g:spacevim_checkinstall*
2017-03-29 22:35:02 +08:00
Enable/Disable checkinstall on SpaceVim startup. Default is 1.
2017-01-06 21:42:33 +08:00
>
2017-03-27 21:19:24 +08:00
let g:spacevim_checkinstall = 1
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. Default is 0.
2017-01-08 16:27:18 +08:00
>
let g:spacevim_enable_debug = 1
<
2017-05-31 22:00:17 +08:00
*g:spacevim_auto_disable_touchpad*
Auto disable touchpad when switch to insert mode or focuslost in neovim.
2017-01-08 23:02:49 +08:00
*g:spacevim_debug_level*
2017-04-07 23:17:01 +08:00
Set the debug level of SpaceVim. Default is 1. see
|SpaceVim#logger#setLevel()|
2017-01-08 23:02:49 +08:00
2017-02-26 00:46:44 +08:00
*g:spacevim_buffer_index_type*
Set SpaceVim buffer index type, default is 0.
2017-02-26 00:46:44 +08:00
>
" types:
" 0: 1 ➛ ➊
" 1: 1 ➛ ➀
" 2: 1 ➛ ⓵
" 3: 1 ➛ ¹
" 4: 1 ➛ 1
2017-02-26 00:46:44 +08:00
let g:spacevim_buffer_index_type = 1
<
2017-06-01 00:18:32 +08:00
*g:spacevim_windows_index_type*
Set SpaceVim windows index type, default is 0.
>
" types:
" 0: 1 ➛ ➊
" 1: 1 ➛ ➀
" 2: 1 ➛ ⓵
2017-09-20 21:24:57 +08:00
" 3: 1 ➛ 1
2017-06-01 00:18:32 +08:00
let g:spacevim_windows_index_type = 1
<
*g:spacevim_enable_tabline_filetype_icon*
Enable/Disable tabline filetype icon. default is 0.
2017-03-01 21:14:03 +08:00
*g:spacevim_enable_os_fileformat_icon*
Enable/Disable os fileformat icon. default is 0.
2017-01-01 21:31:57 +08:00
*g:spacevim_plugin_groups*
Plugin groups to be loaded.
2017-01-01 21:31:57 +08:00
>
let g:spacevim_plugin_groups = ['core', 'lang']
<
*g:spacevim_github_username*
Set the github username, It will be used for getting your starred repos, and
fuzzy find the repo you want.
2018-01-14 23:48:44 +08:00
*g:spacevim_windows_smartclose*
Set the default key for smart close windows, default is `q`.
2017-01-05 21:16:45 +08:00
*g:spacevim_disabled_plugins*
Disable plugins by name.
2017-01-05 21:16:45 +08:00
>
let g:spacevim_disabled_plugins = ['vim-foo', 'vim-bar']
<
2017-01-09 22:50:06 +08:00
*g:spacevim_custom_plugins*
Add custom plugins.
2017-01-09 22:50:06 +08:00
>
let g:spacevim_custom_plugins = [
\ ['plasticboy/vim-markdown', 'on_ft' : 'markdown'],
\ ['wsdjeg/GitHub.vim'],
\ ]
<
2018-01-17 21:34:44 +08:00
*g:spacevim_filetype_icons*
change the default filetype icon for a specific filtype.
>
let g:spacevim_filetype_icons['md'] = ''
<
2017-01-10 00:27:52 +08:00
*g:spacevim_force_global_config*
SpaceVim will load the global config after local config if set to 1. Default
is 0. If you have a local config, the global config will not be loaded.
2017-01-10 00:27:52 +08:00
>
let g:spacevim_force_global_config = 1
<
2017-01-02 10:38:23 +08:00
*g:spacevim_enable_powerline_fonts*
Enable/Disable powerline symbols. Default is 1.
2017-01-02 10:38:23 +08:00
2017-01-07 23:01:13 +08:00
*g:spacevim_lint_on_save*
Enable/Disable lint on save feature of SpaceVim's maker. Default is 1.
2017-01-07 23:01:13 +08:00
>
let g:spacevim_lint_on_save = 0
<
2018-01-14 23:08:56 +08:00
*g:spacevim_project_rooter_patterns*
Set the project rooter patterns, by default it is `['.git/', '_darcs/',
'.hg/', '.bzr/', '.svn/']`
*g:spacevim_project_rooter_automatically*
Enable/Disable changing directory automatically. Enabled by default.
2017-04-08 23:54:44 +08:00
*g:spacevim_lint_on_the_fly*
Enable/Disable lint on the fly feature of SpaceVim's maker. Default is 0.
>
let g:spacevim_lint_on_the_fly = 0
<
*g:spacevim_enable_vimfiler_welcome*
Enable/Disable vimfiler in the welcome windows. Default is 1. This will cause
vim to start up slowly if there are too many files in the current directory.
>
let g:spacevim_enable_vimfiler_welcome = 0
<
*g:spacevim_enable_vimfiler_gitstatus*
2017-10-19 12:39:28 +08:00
Enable/Disable gitstatus column in vimfiler buffer, default is 0.
*g:spacevim_enable_vimfiler_filetypeicon*
2017-10-19 12:39:28 +08:00
Enable/Disable filetypeicon column in vimfiler buffer, default is 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 20:05:52 +08:00
2018-02-03 19:49:18 +08:00
*g:neomake_echo_current_error*
neomake/neomake {{{ This setting will echo the error for the line your cursor
is on, if any.
*g:ale_echo_delay*
w0rp/ale {{{
2018-02-07 13:49:44 +08:00
*g:github_issues_no_omni*
jaxbot/github-issues.vim {{{ Disable completion by github-issues.vim. Because
github-complete.vim provides more powerful completion.
*g:github_dashboard*
junegunn/vim-github-dashboard {{{
*g:dash_map*
rizzatti/dash.vim {{{ Allows configuration of mappings between Vim filetypes
and Dash's docsets.
2017-03-07 23:31:51 +08:00
==============================================================================
COMMANDS *SpaceVim-commands*
:SPLayer {layers} *:SPLayer*
Load exist layer, {layers} can be a string of a layer name, or a list of
layer names.
2017-03-22 00:03:26 +08:00
:SPVersion *:SPVersion*
Print the version of SpaceVim. The following lines contain information
about which features were enabled. When there is a preceding '+', the
feature is included, when there is a '-' it is excluded.
2017-03-07 23:31:51 +08:00
:SPSet {opt} [value] *:SPSet*
Set or check SpaceVim option. {opt} should be the option name of spacevim,
This command will use [value] as the value of option name.
:SPDebugInfo[!] *:SPDebugInfo*
print the debug information of spacevim, [!] forces the output into a new
buffer.
2017-03-17 22:21:19 +08:00
:SPConfig *:SPConfig*
edit custom config file of SpaceVim, by default this command will open
global custom configuration file, '-l' option will load local custom
configuration file.
>
:SPConfig -g
<
2017-04-03 16:44:06 +08:00
:SPUpdate *:SPUpdate*
2017-04-05 21:27:08 +08:00
Command for update plugin, support completion of plugin name. If run without
argv, All the plugin will be updated.
2017-04-03 16:44:06 +08:00
>
:SPUpdate vim-airline
<
:SPReinstall *:SPReinstall*
2017-11-19 10:18:32 +08:00
Command for reinstall plugin, support completion of plugin name.
2017-04-05 23:15:12 +08:00
:SPInstall *:SPInstall*
Command for install plugins.
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()*
Load the {layer} you want. For all the layers SpaceVim supports, see
2017-07-28 05:22:12 +08:00
|SpaceVim-layers|. the second argv is the layer variable.
2016-12-31 19:07:05 +08:00
2017-01-08 16:27:18 +08:00
SpaceVim#logger#setLevel({level}) *SpaceVim#logger#setLevel()*
Set debug level of SpaceVim. Default is 1.
2017-01-08 16:27:18 +08:00
1 : log all messages
2017-01-08 16:27:18 +08:00
2 : log warning and error messages
2017-01-08 16:27:18 +08:00
3 : log error messages only
2017-01-08 16:27:18 +08:00
SpaceVim#logger#setOutput({file}) *SpaceVim#logger#setOutput()*
2017-11-11 00:50:21 +08:00
Set the log output file of SpaceVim. Default is empty.
2017-01-08 16:27:18 +08:00
2018-02-09 16:31:54 +08:00
SpaceVim#plugins#iedit#start() *SpaceVim#plugins#iedit#start()*
public API for iedit mode
>
KEY:
expr match expression
word match word
stack cursor pos stack
<
if only argv 1 is given, use selected word as pattern
2017-01-11 01:03:52 +08:00
==============================================================================
LAYERS *SpaceVim-layers*
2017-01-11 15:40:19 +08:00
SpaceVim support such layers:
2017-02-08 20:27:27 +08:00
==============================================================================
DEFAULT *SpaceVim-default*
2017-01-25 20:04:17 +08:00
==============================================================================
AUTOCOMPLETE *SpaceVim-autocomplete*
2017-01-31 20:09:13 +08:00
CODE COMPLETION
SpaceVim uses neocomplete as the default completion engine if vim has lua
support. If there is no lua support, neocomplcache will be used for the
completion engine. SpaceVim uses deoplete as the default completion engine for
neovim. Deoplete requires neovim to be compiled with python support. For more
information on python support, please read neovim's |provider-python|.
2017-01-25 20:04:17 +08:00
SpaceVim includes YouCompleteMe, but it is disabled by default. To enable ycm,
2017-01-25 20:04:17 +08:00
see |g:spacevim_enable_ycm|.
2017-01-31 20:09:13 +08:00
SNIPPET
SpaceVim use neosnippet as the default snippet engine. The default snippets
are provided by `Shougo/neosnippet-snippets`. For more information, please
read |neosnippet|. Neosnippet support custom snippets, and the default
snippets directory is `~/.SpaceVim/snippets/`. If
`g:spacevim_force_global_config = 1`, SpaceVim will not append
`./.SpaceVim/snippets` as default snippets directory.
2017-01-31 20:09:13 +08:00
2017-02-03 19:49:18 +08:00
==============================================================================
CHECKERS *SpaceVim-layer-checkers*
SpaceVim uses neomake as default syntax checker.
2017-02-03 19:49:18 +08:00
2017-01-22 23:20:41 +08:00
==============================================================================
COLORSCHEME *SpaceVim-colorscheme*
The ldefault colorscheme for SpaceVim is gruvbox. The colorscheme can be
changed with the `g:spacevim_colorscheme` option by adding the following line
to your `~/.SpaceVim/init.vim`.
2017-01-23 21:59:35 +08:00
>
let g:spacevim_colorscheme = 'solarized'
<
The following colorschemes are include in SpaceVim. If the colorscheme you
want is not included in the list below, a PR is welcome.
Also, there's one thing which everyone should know and pay attention to. NOT
all of below colorschemes support spell check very well. For example, a
2017-03-09 12:42:47 +08:00
colorscheme called atom doesn't support spell check very well.
SpaceVim is not gonna fix them since these should be in charge of each author.
You can see a list which has no support of spell check in here:
https://github.com/SpaceVim/SpaceVim/issues/209#issuecomment-280545818
2017-01-22 23:20:41 +08:00
>
anderson
apprentice
atom
base16-3024
base16-apathy
base16-ashes
base16-atelier-cave
base16-atelier-dune
base16-atelier-estuary
base16-atelier-forest
base16-atelier-heath
base16-atelier-lakeside
base16-atelier-plateau
base16-atelier-savanna
base16-atelier-seaside
base16-atelier-sulphurpool
base16-bespin
base16-brewer
base16-bright
base16-chalk
base16-codeschool
base16-cupcake
base16-darktooth
base16-default-dark
base16-default-light
base16-dracula
base16-eighties
base16-embers
base16-flat
base16-github
base16-google-dark
base16-google-light
base16-grayscale-dark
base16-grayscale-light
base16-green-screen
base16-harmonic16-dark
base16-harmonic16-light
base16-hopscotch
base16-ir-black
base16-isotope
base16-london-tube
base16-macintosh
base16-marrakesh
base16-materia
base16-mexico-light
base16-mocha
base16-monokai
base16-ocean
base16-oceanicnext
base16-onedark
base16-paraiso
base16-phd
base16-pico
base16-pop
base16-railscasts
base16-seti-ui
base16-shapeshifter
base16-solar-flare
base16-solarized-dark
base16-solarized-light
base16-spacemacs
base16-summerfruit-dark
base16-summerfruit-light
base16-tomorrow
base16-tomorrow-night
base16-twilight
base16-unikitty-dark
base16-unikitty-light
base16-woodland
blue
darkblue
default
delek
desert
elflord
evening
flatcolor
flattened_dark
flattened_light
focuspoint
2017-01-23 21:59:35 +08:00
gruvbox
hybrid
2017-01-22 23:20:41 +08:00
hybrid-material
2017-01-23 22:13:02 +08:00
hybrid_material
hybrid_reverse
industry
janah
jellybeans
koehler
lightning
lucius
molokai
molokayo
morning
murphy
2017-01-23 22:13:02 +08:00
OceanicNext
OceanicNextLight
onedark
pablo
PaperColor
parsec
peachpuff
pyte
rdark-terminal2
ron
scheakur
seoul256
seoul256-light
shine
slate
solarized
torte
twilight256
wombat256mod
yowish
zellner
2017-01-22 23:20:41 +08:00
<
2017-03-03 21:54:43 +08:00
==============================================================================
CORE#TABLINE *SpaceVim-layer-core-tabline*
This layer provides default tabline for SpaceVim
2017-02-10 23:57:35 +08:00
==============================================================================
2017-02-12 09:52:43 +08:00
EXPRFOLD *SpaceVim-layer-exprfold*
Fold code quickly according to expr.
2017-02-12 09:52:43 +08:00
Mappings:
2017-02-12 09:52:43 +08:00
>
Key Mode Function
----------------------------------------------------
ZB normal Open fold block template
ZF normal Fold block
ZC normal Fold block comment
2017-02-12 09:52:43 +08:00
<
2017-03-19 16:27:36 +08:00
==============================================================================
FORMAT *SpaceVim-format*
SpaceVim uses neoformat as the default code format tools. Neoformat uses a
variety of formatters for many filetypes. for more info see |neoformat|
2018-02-07 13:49:44 +08:00
==============================================================================
GITHUB *SpaceVim-layer-github*
This layer provides GitHub integration for SpaceVim
MAPPINGS
>
Mode Key Function
-------------------------------------------------------------
normal SPC g h i show issues
normal SPC g h a show activities
normal SPC g h d show dashboard
normal SPC g h f show current file in browser
normal SPC g h I show issues in browser
normal SPC g h p show PRs in browser
<
2017-02-24 22:29:51 +08:00
==============================================================================
INCSEARCH *SpaceVim-layer-incsearch*
This layer improved incremental searching for neovim/vim
mappings
>
key mode description
/ n/v incsearch forward
? n/v incsearch backward
g/ n/v incsearch stay
n n nohlsearch n
N n nohlsearch N
* n nohlsearch *
g* n nohlsearch g*
# n nohlsearch #
g# n nohlsearch g#
z/ n incsearch fuzzy /
z? n incsearch fuzzy ?
zg? n incsearch fuzzy g?
<space>/ n incsearch easymotion
<
2017-02-12 09:52:43 +08:00
==============================================================================
INDENTMOVE *SpaceVim-layer-indentmove*
2017-02-10 23:57:35 +08:00
Move cursor quickly according to indent.
MAPPINGS
2017-02-10 23:57:35 +08:00
>
Key mode function
-----------------------------------------------------------------
EH normal/visual move up to nearest line with smaller
2017-02-10 23:57:35 +08:00
indent level
EL normal/visual move down to nearest line with larger
2017-02-10 23:57:35 +08:00
indent level
EJ normal/visual move down to nearest line with smaller
2017-02-10 23:57:35 +08:00
or same indent level
EK normal/visual move down to nearest line with larger
2017-02-10 23:57:35 +08:00
or same indent level
EI normal/visual move down to nearest child indent
2017-02-10 23:57:35 +08:00
<
2017-01-29 22:55:09 +08:00
==============================================================================
2017-01-31 19:05:59 +08:00
LANG#C *SpaceVim-layer-lang-c*
2017-01-29 22:55:09 +08:00
This layer provides C family language code completion and syntax checking.
Requires clang.
2017-01-29 22:55:09 +08:00
Configuration for `tweekmonster/deoplete-clang2`:
2017-01-29 22:55:09 +08:00
1. Set the compile flags:
`let g:deoplete#sources#clang#flags = ['-Iwhatever', ...]`
2017-01-29 22:55:09 +08:00
2. Set the path to the clang executable:
`let g:deoplete#sources#clang#executable = '/usr/bin/clang'
3. `g:deoplete#sources#clang#autofill_neomake` is a boolean that tells this
plugin to fill in the `g:neomake_<filetype>_clang_maker` variable with the
clang executable path and flags. You will still need to enable it with
`g:neomake_<filetype>_enabled_make=['clang']`.
4. Set the standards for each language: `g:deoplete#sources#clang#std` is a
dict containing the standards you want to use. It's not used if you
already have `-std=whatever` in your flags. The defaults are:
2017-01-29 22:55:09 +08:00
>
{
'c': 'c11',
'cpp': 'c++1z',
'objc': 'c11',
'objcpp': 'c++1z',
}
2017-01-29 22:55:09 +08:00
<
5. `g:deoplete#sources#clang#preproc_max_lines` sets the maximum number of
lines to search for an #ifdef or #endif line. #ifdef lines are discarded
to get completions within conditional preprocessor blocks. The default is
50, setting it to 0 disables this feature.
2017-01-29 22:55:09 +08:00
2017-03-30 17:56:52 +08:00
==============================================================================
LANG#CRYSTAL *SpaceVim-layer-lang-crystal*
INTRO
2017-03-30 21:54:32 +08:00
The lang#crystal layer provides crystal filetype detection and syntax
highlight, crystal tool and crystal spec integration.
2017-03-30 17:56:52 +08:00
2018-02-25 21:29:43 +08:00
==============================================================================
LANG#CSHARP *SpaceVim-layer-lang-csharp*
This layer includes utilities and language-specific mappings for csharp
development.
KEY MAPPINGS
>
Mode Key Function
---------------------------------------------
normal SPC l b compile the project
normal SPC l f format current file
normal SPC l d show doc
normal SPC l e rename symbol under cursor
normal SPC l g g go to definition
normal SPC l g i find implementations
normal SPC l g t find type
normal SPC l g s find symbols
normal SPC l g u find usages of symbol under cursor
normal SPC l g m find members in the current buffer
normal SPC l s r reload the solution
normal SPC l s s start the OmniSharp server
normal SPC l s S stop the OmniSharp server
<
2017-02-03 19:49:18 +08:00
==============================================================================
LANG#ELIXIR *SpaceVim-layer-lang-elixir*
INTRO
The lang#elixir layer provides code completion, documentation lookup, jump to
definition, mix integration, and iex integration for Elixir. SpaceVim uses
neomake as default syntax checker which is loaded in |SpaceVim-layer-checkers|
2017-02-03 19:49:18 +08:00
2017-01-31 22:15:06 +08:00
==============================================================================
LANG#GO *SpaceVim-layer-lang-go*
This layer includes code completion and syntax checking for Go development.
2017-01-31 22:15:06 +08:00
MAPPINGS
>
Mode Key Function
---------------------------------------------
2017-10-11 23:30:16 +08:00
normal SPC l i go implements
normal SPC l f go info
normal SPC l e go rename
normal SPC l r go run
normal SPC l b go build
normal SPC l t go test
normal SPC l d go doc
normal SPC l v go doc vertical
normal SPC l c go coverage
2017-01-31 22:15:06 +08:00
<
2017-01-22 23:20:41 +08:00
==============================================================================
2017-01-31 19:05:59 +08:00
LANG#JAVA *SpaceVim-layer-lang-java*
2017-01-22 23:20:41 +08:00
This layer is for Java development.
MAPPINGS
2017-01-22 23:20:41 +08:00
>
2017-12-19 20:53:06 +08:00
Import key bindings:
Mode Key Function
-------------------------------------------------------------
normal <F4> import class under cursor
insert <F4> import class under cursor
2017-12-19 20:53:06 +08:00
normal SPC l I import missing classes
normal SPC l R remove unused imports
normal SPC l i smart import class under cursor
insert <c-j>I import missing imports
insert <c-j>R remove unused imports
insert <c-j>i smart import class under cursor
2017-12-19 20:53:06 +08:00
Generate key bindings:
Mode Key Function
-------------------------------------------------------------
2017-12-19 20:53:06 +08:00
normal SPC l g A generate accessors
normal SPC l g s generate setter accessor
normal SPC l g g generate getter accessor
normal SPC l g a generate setter and getter accessor
normal SPC l g t generate toString function
normal SPC l g e generate equals and hashcode function
normal SPC l g c generate constructor
normal SPC l g C 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 SPC l g s generate setter accessor
visual SPC l g g generate getter accessor
visual SPC l g a generate setter and getter accessor
Maven key bindings:
Mode Key Function
-------------------------------------------------------------
normal SPC l m i Run maven clean install
normal SPC l m I Run maven install
normal SPC l m p Run one already goal from list
normal SPC l m r Run maven goals
normal SPC l m R Run one maven goal
normal SPC l m t Run maven test
Jump key bindings:
Mode Key Function
-------------------------------------------------------------
normal SPC l j a jump to alternate file
REPL key bindings:
Mode Key Function
-------------------------------------------------------------
normal SPC l s i start a jshell inferior REPL process
normal SPC l s b send buffer and keep code buffer focused
normal SPC l s l send line and keep code buffer focused
normal SPC l s s send selection text and keep code buffer focused
2017-01-22 23:20:41 +08:00
<
2017-03-19 16:27:36 +08:00
CODE FORMATTING
To make neoformat support java file, you should install uncrustify. or
download google's formater jar from:
https://github.com/google/google-java-format
2017-01-22 23:20:41 +08:00
2017-03-19 16:27:36 +08:00
and set 'g:spacevim_layer_lang_java_formatter' to the path of the jar.
2017-01-22 23:20:41 +08:00
2017-09-07 06:35:20 +08:00
==============================================================================
LANG#JULIA *SpaceVim-layer-lang-julia*
The layer provides synatax highlight and linting for julia. The completeion
only works in nvim with deoplete. However, the julia-vim could not be load
on-demanding due to its LaTeXToUnicode feature.
2017-06-27 21:30:14 +08:00
==============================================================================
LANG#KOTLIN *SpaceVim-layer-lang-kotlin*
This layer is for kotlin development.
2017-12-19 20:31:44 +08:00
==============================================================================
LANG#LUA *SpaceVim-layer-lang-lua*
This layer includes utilities and language-specific mappings for lua
development.
MAPPINGS
>
Mode Key Function
---------------------------------------------
normal SPC l r lua run
<
2017-02-12 15:59:59 +08:00
==============================================================================
LANG#OCAML *SpaceVim-layer-lang-ocaml*
OCaml autocompletion provided by merlin.
2017-02-12 15:59:59 +08:00
Requirements:
2017-02-12 15:59:59 +08:00
>
opam
merlin
<
2017-01-22 23:25:19 +08:00
==============================================================================
2017-01-31 19:05:59 +08:00
LANG#PHP *SpaceVim-layer-lang-php*
2017-01-19 21:46:37 +08:00
This layer is for PHP development. It proides code completion, syntax
checking, and jump to definition.
2017-01-19 21:46:37 +08:00
Requirements:
2017-01-27 20:37:01 +08:00
>
PHP 5.3+
PCNTL Extension
2017-02-05 22:47:04 +08:00
Msgpack 0.5.7+(for NeoVim)Extension: https://github.com/msgpack/msgpack-php
JSON(for Vim 7.4+)Extension
2017-01-27 20:37:01 +08:00
Composer Project
<
2017-01-19 21:46:37 +08:00
2017-09-07 06:35:20 +08:00
==============================================================================
LANG#PONY *SpaceVim-layer-lang-pony*
==============================================================================
LANG#PUPPET *SpaceVim-layer-lang-puppet*
This layer is for Puppet development. It provides syntax highlighting and
syntax checking.
Requirements:
>
Puppet
Puppet Lint
<
2017-02-02 01:57:06 +08:00
==============================================================================
LANG#PYTHON *SpaceVim-layer-lang-python*
To make this layer work well, you should install jedi.
2017-02-02 01:57:06 +08:00
MAPPINGS
>
mode key function
<
2017-01-31 19:05:59 +08:00
==============================================================================
2017-01-31 20:09:13 +08:00
LANG#RUST *SpaceVim-layer-lang-rust*
2017-01-26 16:03:18 +08:00
SpaceVim does not load this layer by default. If you are a rust developer, you
2017-01-27 21:49:05 +08:00
should add `call SpaceVim#layers#load('lang#rust')` to your |SpaceVim-config|
Requirements:
2017-01-26 16:03:18 +08:00
1. Racer needs a copy of the rust source. The easiest way to do this is with
rustup. Once rustup is installed, download the source with:
2017-01-26 16:03:18 +08:00
>
rustup component add rust-src
<
2. Install racer:
2017-01-26 16:03:18 +08:00
>
cargo install racer
<
3. Set the RUST_SRC_PATH variable in your .bashrc:
>
RUST_SRC_PATH=~/.multirust/toolchains/<change>/lib/rustlib/src/rust/src
export RUST_SRC_PATH
<
4. Add racer to your path, or set the path with:
>
let g:racer_cmd = "/path/to/racer/bin"
<
MAPPINGS
>
Mode Key Function
-----------------------------------------------
2017-01-26 16:03:18 +08:00
normal gd rust-definition
normal gs rust-definition-split
normal gx rust-definition-vertical
2017-11-08 21:14:40 +08:00
normal SPC l d rust-doc
normal SPC l r execute current file
2017-01-26 16:03:18 +08:00
<
2017-04-11 21:29:39 +08:00
==============================================================================
LANG#SCALA *SpaceVim-layer-lang-scala*
2017-06-25 09:39:51 +08:00
==============================================================================
LANG#TMUX *SpaceVim-layer-lang-tmux*
INTRO
The lang#tmux layer provides syntax highlighting, commenting, man page
navigation and ability to execute lines as tmux commands.
|SpaceVim-layer-checkers|
2017-01-26 16:14:06 +08:00
==============================================================================
2017-01-31 20:09:13 +08:00
LANG#XML *SpaceVim-layer-lang-xml*
When editing an xml file, the omni func is xmlcomplete#CompleteTags. You can
read the documentation in autoload/xmlcomplete.vim in the vim or neovim
runtime directory.
2017-01-31 20:09:13 +08:00
==============================================================================
2017-02-24 23:17:41 +08:00
OPERATOR *SpaceVim-layer-operator*
With this layer, you can confirm that text is yanked correctly and see yanked
text by highlighting.
2017-01-31 20:09:13 +08:00
==============================================================================
2017-02-02 22:52:10 +08:00
SHELL *SpaceVim-layer-shell*
SpaceVim uses deol.nvim for shell support in neovim and uses vimshell for vim.
For more info, read |deol| and |vimshell|.
2017-07-28 05:22:12 +08:00
VARIABLE
default_shell
2017-02-02 22:52:10 +08:00
==============================================================================
TMUX *SpaceVim-layer-tmux*
Adds integration between tmux and vim panes. Switch between panes seamlessly.
This layer is not added by default. To include it, add
2017-10-28 20:20:27 +08:00
`SpaceVim#layers#load('tmux')` to your `~/.SpaceVim.d/init.vim`. If you are
having issues with <C-h> in a neovim buffer, see
2017-02-22 05:28:52 +08:00
`https://github.com/neovim/neovim/issues/2048#issuecomment-78045837`
MAPPINGS
>
Key Mode Function
------------------------------
2017-02-22 05:28:52 +08:00
<C-h> normal Switch to vim/tmux pane in left direction
<C-j> normal Switch to vim/tmux pane in down direction
<C-k> normal Switch to vim/tmux pane in up direction
<C-l> normal Switch to vim/tmux pane in right direction
<
==============================================================================
TOOLS#DASH *SpaceVim-layer-tools-dash*
This layer provides Dash integration for SpaceVim
2017-03-11 20:43:42 +08:00
==============================================================================
API *SpaceVim-api*
SpaceVim contains a variety of public apis. here is a list of all the apis.
USAGE
This is just an example, and it works well in old version vim.
>
let s:json = SpaceVim#api#import('data#json')
let rst = s:json.json_encode(onject)
let rst = s:json.json_decode(string)
<
==============================================================================
CMDLINEMENU *SpaceVim-api-cmdlinemenu*
menu({items})
Create a cmdline selection menu from a list of {items}, each item should be a
list of two value in it, first one is the description, and the next one should
be a funcrc.
==============================================================================
DATA#LIST *SpaceVim-api-data-list*
pop({list})
Removes the last element from {list} and returns the element, as if the {list}
is a stack.
push({list})
Appends {val} to the end of {list} and returns the list itself, as if the
{list} is a stack.
listpart({list}, {start}[, {len}])
The result is a List, which is part of {list}, starting from index {start},
with the length {len}
2017-07-09 14:44:19 +08:00
==============================================================================
PROMPT *SpaceVim-api-prompt*
open()
Create a cmdline prompt, use while loop to get the input from user. The
default mapping for prompt is:
2017-07-09 15:29:13 +08:00
>
<Bs> remove last character
<C-w> remove the Word before the cursor
<C-u> remove the Line before the cursor
<C-k> remove the Line after the cursor
<C-a> / <Home> Go to the beginning of the line
<C-e> / <End> Go to the end of the line
<
2017-07-09 14:44:19 +08:00
==============================================================================
SID *SpaceVim-api-vim-sid*
" Capture command
==============================================================================
VIM#MESSAGE *SpaceVim-api-vim-message*
2017-02-02 22:52:10 +08:00
==============================================================================
2017-01-25 20:04:17 +08:00
FAQ *SpaceVim-faq*
1. How do I enable YouCompleteMe?
2017-01-25 20:44:05 +08:00
>
I do not recommend using YouCompleteMe.
It is too big as a vim plugin. Also, I do not like using submodules in a vim
plugin. It is hard to manage with a plugin manager.
Step 1: Add `let g:spacevim_enable_ycm = 1` to custom_config. By default
it should be `~/.SpaceVim.d/init.vim`.
2017-01-25 20:44:05 +08:00
Step 2: Get into the directory of YouCompleteMe's author. By default it
should be `~/.cache/vimfiles/repos/github.com/Valloric/`. If you find the
directory `YouCompleteMe` in it, go into it. Otherwise clone
2017-01-25 20:44:05 +08:00
YouCompleteMe repo by
`git clone https://github.com/Valloric/YouCompleteMe.git`. After cloning,
get into it and run `git submodule update --init --recursive`.
2017-01-25 20:44:05 +08:00
Step 3: Compile YouCompleteMe with the features you want. If you just want
C family support, run `./install.py --clang-completer`.
2017-01-25 20:44:05 +08:00
<
2017-01-25 20:04:17 +08:00
2. How to add custom snippet?
2017-02-08 20:27:27 +08:00
>
SpaceVim uses neosnippet as the default snippet engine. If you want to add
a snippet for a vim filetype, open a vim file and run `:NeoSnippetEdit`
command. A buffer will be opened and you can add your custom snippet.
By default this buffer will be save in `~/.SpaceVim/snippets`.
If you want to use another directory:
2017-02-08 20:27:27 +08:00
let g:neosnippet#snippets_directory = '~/path/to/snip_dir'
For more info about how to write snippet, please
read |neosnippet-snippet-syntax|.
2017-02-08 20:27:27 +08:00
<
2017-02-08 21:01:16 +08:00
3. Where is `<c-f>` in cmdline-mode?
>
`<c-f>` is the default value of |cedit| option, but in SpaceVim we use that
binding as `<Right>`, so maybe you can change the `cedit` option or use
`<leader>+<c-f>`.
<
2017-02-08 21:01:16 +08:00
2017-02-22 21:25:17 +08:00
4. How to use `<space>` as `<leader>`?
>
Add `let mapleader = "\<space>"` to `~/.SpaceVim.d/init.vim`
<
2016-12-31 19:07:05 +08:00
vim:tw=78:ts=8:ft=help:norl: