mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:50:05 +08:00
Update default
This commit is contained in:
parent
8892d0a826
commit
3ea4db4768
@ -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
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user