1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-09 10:00:04 +08:00

Update default

This commit is contained in:
wsdjeg 2018-02-25 22:07:18 +08:00
parent 8892d0a826
commit 3ea4db4768
3 changed files with 10 additions and 10 deletions

View File

@ -741,16 +741,12 @@ function! SpaceVim#begin() abort
autocmd VimEnter * call SpaceVim#welcome() autocmd VimEnter * call SpaceVim#welcome()
augroup END augroup END
endif endif
call SpaceVim#default#SetOptions() call SpaceVim#default#options()
call SpaceVim#default#layers() call SpaceVim#default#layers()
call SpaceVim#default#SetMappings() call SpaceVim#default#keyBindings()
call SpaceVim#commands#load() call SpaceVim#commands#load()
endfunction endfunction
function! SpaceVim#defindFuncs() abort
endfunction
function! SpaceVim#welcome() abort function! SpaceVim#welcome() abort
if get(g:, '_spacevim_session_loaded', 0) == 1 if get(g:, '_spacevim_session_loaded', 0) == 1
return return

View File

@ -8,7 +8,7 @@
scriptencoding utf-8 scriptencoding utf-8
" Default options {{{ " Default options {{{
function! SpaceVim#default#SetOptions() abort function! SpaceVim#default#options() abort
" basic vim settiing " basic vim settiing
if has('gui_running') if has('gui_running')
set guioptions-=m " Hide menu bar. set guioptions-=m " Hide menu bar.
@ -132,6 +132,7 @@ function! SpaceVim#default#layers() abort
call SpaceVim#layers#load('checkers') call SpaceVim#layers#load('checkers')
call SpaceVim#layers#load('format') call SpaceVim#layers#load('format')
call SpaceVim#layers#load('edit') call SpaceVim#layers#load('edit')
call SpaceVim#layers#load('ui')
call add(g:spacevim_plugin_groups, 'ui') call add(g:spacevim_plugin_groups, 'ui')
call add(g:spacevim_plugin_groups, 'tools') call add(g:spacevim_plugin_groups, 'tools')
call add(g:spacevim_plugin_groups, 'git') call add(g:spacevim_plugin_groups, 'git')
@ -146,11 +147,13 @@ function! SpaceVim#default#layers() abort
call add(g:spacevim_plugin_groups, 'github') call add(g:spacevim_plugin_groups, 'github')
if has('python3') if has('python3')
call add(g:spacevim_plugin_groups, 'denite') call add(g:spacevim_plugin_groups, 'denite')
elseif has('python')
else
call add(g:spacevim_plugin_groups, 'ctrlp')
endif endif
call add(g:spacevim_plugin_groups, 'ctrlp')
endfunction endfunction
function! SpaceVim#default#SetMappings() abort function! SpaceVim#default#keyBindings() abort
" Save a file with sudo " Save a file with sudo
" http://forrst.com/posts/Use_w_to_sudo_write_a_file_with_Vim-uAN " http://forrst.com/posts/Use_w_to_sudo_write_a_file_with_Vim-uAN

View File

@ -260,7 +260,8 @@ autocommand BufEnter <buffer>
#### Naming #### Naming
In general, use plugin-names-like-this, FunctionNamesLikeThis, CommandNamesLikeThis, augroup_names_like_this, variable_names_like_this. In general, use `plugin-names-like-this`, `FunctionNamesLikeThis`,
`CommandNamesLikeThis`, `augroup_names_like_this`, `variable_names_like_this`.
Always prefix variables with their scope. Always prefix variables with their scope.