mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 02:30:03 +08:00
Add example
This commit is contained in:
parent
90a4878878
commit
e9dcb9b769
49
README.md
49
README.md
@ -59,6 +59,55 @@ organised in configuration layers following a set of
|
|||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
|
### Quick start guide
|
||||||
|
|
||||||
|
SpaceVim load custom configuration from `~/.SpaceVim.d/init.vim`,
|
||||||
|
|
||||||
|
:warning: It is not `~/.SpaceVim/init.vim`, user should not change anything in `~/.SpaceVim/`.
|
||||||
|
|
||||||
|
here is an example:
|
||||||
|
|
||||||
|
```vim
|
||||||
|
" Here are some basic customizations, please refer to the ~/.SpaceVim.d/init.vim
|
||||||
|
" file for all possible options:
|
||||||
|
let g:spacevim_default_indent = 3
|
||||||
|
let g:spacevim_max_column = 80
|
||||||
|
let g:spacevim_colorscheme = 'jellybeans'
|
||||||
|
let g:spacevim_plugin_manager = 'dein' " neobundle or dein or vim-plug
|
||||||
|
|
||||||
|
" Change the default directory where all miscellaneous persistent files go.
|
||||||
|
" By default it is ~/.cache/vimfiles.
|
||||||
|
let g:spacevim_plugin_bundle_dir = '~/.cache/vimfiles'
|
||||||
|
|
||||||
|
" By default, language specific plugins are not loaded. This can be changed
|
||||||
|
" with the following, then the plugins for go development will be loaded.
|
||||||
|
call SpaceVim#layers#load('lang#go')
|
||||||
|
|
||||||
|
" loaded ui layer
|
||||||
|
call SpaceVim#layers#load('ui')
|
||||||
|
|
||||||
|
" Alternatively, you can set this variable to load exactly what you want:
|
||||||
|
let g:spacevim_plugin_groups = ['core', 'web']
|
||||||
|
|
||||||
|
" If there is a particular plugin you don't like, you can define this
|
||||||
|
" variable to disable them entirely:
|
||||||
|
let g:spacevim_disabled_plugins=[
|
||||||
|
\ ['junegunn/fzf.vim'],
|
||||||
|
\ ]
|
||||||
|
|
||||||
|
" If you want to add some custom plugins, use these options:
|
||||||
|
let g:spacevim_custom_plugins = [
|
||||||
|
\ ['plasticboy/vim-markdown', {'on_ft' : 'markdown'}],
|
||||||
|
\ ['wsdjeg/GitHub.vim'],
|
||||||
|
\ ]
|
||||||
|
|
||||||
|
" set the guifont
|
||||||
|
let g:spacevim_guifont = 'DejaVu\ Sans\ Mono\ for\ Powerline\ 11'
|
||||||
|
|
||||||
|
" use space as `<Leader>`
|
||||||
|
let mapleader = "\<space>"
|
||||||
|
```
|
||||||
|
|
||||||
Comprehensive documentation is available for each layer by <kbd>:h SpaceVim</kbd>.
|
Comprehensive documentation is available for each layer by <kbd>:h SpaceVim</kbd>.
|
||||||
|
|
||||||
You can also check the [general documentation](http://spacevim.org/documentation/).
|
You can also check the [general documentation](http://spacevim.org/documentation/).
|
||||||
|
Loading…
Reference in New Issue
Block a user