1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-16 03:55:41 +08:00

Merge pull request #207 from SpaceVim/startup

Add option for enable/disable vimfiler in welcome windows
This commit is contained in:
Wang Shidong 2017-02-04 01:02:30 +08:00 committed by GitHub
commit 2e80427b82
2 changed files with 18 additions and 1 deletions

View File

@ -210,6 +210,13 @@ let g:spacevim_enable_powerline_fonts = 1
" let g:spacevim_lint_on_save = 0 " let g:spacevim_lint_on_save = 0
" < " <
let g:spacevim_lint_on_save = 1 let g:spacevim_lint_on_save = 1
""
" Enable/Disable Vimfiler in the welcome windows, this will cause vim slow on startup if
" there are too many files in current directory. you can disable it by:
" >
" let g:spacevim_enable_vimfiler_welcome = 0
" <
let g:spacevim_enable_vimfiler_welcome = 1
let g:spacevim_smartcloseignorewin = ['__Tagbar__' , 'vimfiler:default'] let g:spacevim_smartcloseignorewin = ['__Tagbar__' , 'vimfiler:default']
let g:spacevim_smartcloseignoreft = ['help'] let g:spacevim_smartcloseignoreft = ['help']
let g:spacevim_altmoveignoreft = ['Tagbar' , 'vimfiler'] let g:spacevim_altmoveignoreft = ['Tagbar' , 'vimfiler']
@ -320,7 +327,9 @@ endfunction
function! SpaceVim#welcome() abort function! SpaceVim#welcome() abort
if exists(':VimFiler') == 2 && exists(':Startify') == 2 if exists(':VimFiler') == 2 && exists(':Startify') == 2
if g:spacevim_enable_vimfiler_welcome
VimFiler VimFiler
endif
wincmd p wincmd p
Startify Startify
endif endif

View File

@ -218,6 +218,14 @@ To disable lint on save:
let g:spacevim_lint_on_save = 0 let g:spacevim_lint_on_save = 0
< <
*g:spacevim_enable_vimfiler_welcome*
Enable/Disable Vimfiler in the welcome windows, this will cause vim slow on
startup if there are too many files in current directory. you can disable it
by:
>
let g:spacevim_enable_vimfiler_welcome = 0
<
*g:spacevim_hosts_url* *g:spacevim_hosts_url*
The host file url. this option is for chinese users who can not use google and The host file url. this option is for chinese users who can not use google and
twitter. twitter.