From b943319ae0bbb03e894626e93c3b3b0f4410f6aa Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Fri, 12 May 2017 20:06:20 +0800 Subject: [PATCH] :bug: Fix unnecessary buffer created fix #514 --- autoload/SpaceVim.vim | 3 +++ docs/layers/chinese.md | 0 docs/layers/colorscheme.md | 6 ++++++ 3 files changed, 9 insertions(+) create mode 100644 docs/layers/chinese.md create mode 100644 docs/layers/colorscheme.md diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index edec2fc4e..0422782cd 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -504,6 +504,9 @@ function! SpaceVim#welcome() abort endif if exists(':Startify') == 2 Startify + if isdirectory(bufname(1)) + bwipeout! 1 + endif endif if g:spacevim_enable_vimfiler_welcome \ && get(g:, '_spacevim_checking_flag', 0) == 0 diff --git a/docs/layers/chinese.md b/docs/layers/chinese.md new file mode 100644 index 000000000..e69de29bb diff --git a/docs/layers/colorscheme.md b/docs/layers/colorscheme.md new file mode 100644 index 000000000..7223da3d0 --- /dev/null +++ b/docs/layers/colorscheme.md @@ -0,0 +1,6 @@ +# [Layers](https://spacevim.org/layers) > colorscheme + +This layer provides many colorschemes for SpaceVim, the default colorscheme is gruvbox. to change the colorscheme: +```vim +let g:spacevim_colorscheme = 'onedark' +```