mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:00:04 +08:00
Add doc
This commit is contained in:
parent
05e5b5f5f2
commit
d3dc775a04
@ -438,6 +438,9 @@ Key | Mode | Action
|
|||||||
|
|
||||||
## Enjoy!
|
## Enjoy!
|
||||||
|
|
||||||
|
## Thanks
|
||||||
|
- [vimdoc](https://github.com/google/vimdoc) generate doc file for SpaceVim
|
||||||
|
|
||||||
<!-- plublic links -->
|
<!-- plublic links -->
|
||||||
[dein.vim]: https://github.com/Shougo/dein.vim
|
[dein.vim]: https://github.com/Shougo/dein.vim
|
||||||
[vimproc]: https://github.com/Shougo/vimproc.vim
|
[vimproc]: https://github.com/Shougo/vimproc.vim
|
||||||
|
5
addon-info.json
Normal file
5
addon-info.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"name": "SpaceVim",
|
||||||
|
"description": "Like spacemacs, but for vim",
|
||||||
|
"author": "wsdjeg"
|
||||||
|
}
|
@ -2,6 +2,8 @@ scriptencoding utf-8
|
|||||||
function! SpaceVim#init() abort
|
function! SpaceVim#init() abort
|
||||||
"Vim settings
|
"Vim settings
|
||||||
let g:settings = get(g:, 'settings', {})
|
let g:settings = get(g:, 'settings', {})
|
||||||
|
""
|
||||||
|
" The default_indent of SpaceVim.
|
||||||
let g:settings.default_indent = 2
|
let g:settings.default_indent = 2
|
||||||
let g:settings.max_column = 120
|
let g:settings.max_column = 120
|
||||||
let g:settings.enable_googlesuggest = 0
|
let g:settings.enable_googlesuggest = 0
|
||||||
@ -50,7 +52,9 @@ function! SpaceVim#loadCustomConfig() abort
|
|||||||
exe 'source ' . custom_confs[0]
|
exe 'source ' . custom_confs[0]
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
""
|
||||||
|
" @public
|
||||||
|
" Load the {layer} you want, with the {opt}.
|
||||||
function! SpaceVim#Layer(layer, opt) abort
|
function! SpaceVim#Layer(layer, opt) abort
|
||||||
|
|
||||||
endfunction
|
endfunction
|
||||||
|
22
doc/SpaceVim.txt
Normal file
22
doc/SpaceVim.txt
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
*SpaceVim.txt* Like spacemacs, but for vim
|
||||||
|
wsdjeg *SpaceVim*
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
CONTENTS *SpaceVim-contents*
|
||||||
|
1. Configuration...........................................|SpaceVim-config|
|
||||||
|
2. Functions............................................|SpaceVim-functions|
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
CONFIGURATION *SpaceVim-config*
|
||||||
|
|
||||||
|
*g:settings*
|
||||||
|
The default_indent of SpaceVim.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
FUNCTIONS *SpaceVim-functions*
|
||||||
|
|
||||||
|
SpaceVim#Layer({layer}, {opt}) *SpaceVim#Layer()*
|
||||||
|
Load the {layer} you want, with the {opt}.
|
||||||
|
|
||||||
|
|
||||||
|
vim:tw=78:ts=8:ft=help:norl:
|
Loading…
Reference in New Issue
Block a user