Skip to content
Liu-Cheng Xu edited this page Aug 11, 2018 · 3 revisions

Loading


   +--------+                              +--------+
   |  vim   |                              |  nvim  |
   +--------+                              +--------+
      |                                         |
      |                                         |
      |       +-------+      +----------+       |
      +-----> | vimrc |      | init.vim | <-----+
              +-------+      +----------+
                  |                |
                  |                |
                  +-----+    +-----+
                        |    |
                        |    |
                    +--------------+
                    | 📝.spacevim  |
                    +--------------+
                        |    |
                        |    |
                   +--------------+
                   | packages.vim |
                   +--------------+
                        |    |
                        |    |
                   +--------------+
                   |  config.vim  |
                   +--------------+

  • The auto generated ~/.spacevim is the configuration file for space-vim, don't edit any other file in ~/.space-vim.

A common space-vim user should pay attention to the following points:

Variable

  • g:spacevim_layers

    let g:spacevim_layers = [ 'fzf', 'better-defaults' ]

    Enable the existing layers in space-vim.

Command

if g:spacevim.nvim
  Layer 'deoplete'
endif

If you want to enable ycmd Layer, don't forget to compile YouCompleteMe to get it work.

⚠️ Layers() has been deprecated since 0.7.0. Please use g:spacevim_layers instead. See removed section in the CHANGELOG.md.

Function

  • UserInit()

    function! UserInit()
      Plug 'junegunn/seoul256.vim'
    endfunction

    Add private plugins.

  • UserConfig()

    function! UserConfig()
      color seoul256
    endfunction

    Override the default settings in space-vim.

Clone this wiki locally