1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 00:50:05 +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()
augroup END
endif
call SpaceVim#default#SetOptions()
call SpaceVim#default#options()
call SpaceVim#default#layers()
call SpaceVim#default#SetMappings()
call SpaceVim#default#keyBindings()
call SpaceVim#commands#load()
endfunction
function! SpaceVim#defindFuncs() abort
endfunction
function! SpaceVim#welcome() abort
if get(g:, '_spacevim_session_loaded', 0) == 1
return

View File

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

View File

@ -260,7 +260,8 @@ autocommand BufEnter <buffer>
#### 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.