mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:10:07 +08:00
Add SpaceVim welcom
This commit is contained in:
parent
80407a48ca
commit
71e52c5a54
@ -184,3 +184,9 @@ endfunction
|
|||||||
function! SpaceVim#loadPlugins() abort
|
function! SpaceVim#loadPlugins() abort
|
||||||
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! SpaceVim#welcome() abort
|
||||||
|
VimFiler
|
||||||
|
wincmd p
|
||||||
|
Startify
|
||||||
|
endfunction
|
||||||
|
@ -60,6 +60,10 @@ function! SpaceVim#autocmds#init() abort
|
|||||||
autocmd BufWritePost *.vim call s:generate_doc()
|
autocmd BufWritePost *.vim call s:generate_doc()
|
||||||
autocmd FileType * set scrolloff=7
|
autocmd FileType * set scrolloff=7
|
||||||
augroup END
|
augroup END
|
||||||
|
augroup SpaceVimInit
|
||||||
|
au!
|
||||||
|
autocmd VimEnter * if !argc() | call SpaceVim#welcome() | endif
|
||||||
|
augroup END
|
||||||
endfunction
|
endfunction
|
||||||
function! s:reload_touchpad_status() abort
|
function! s:reload_touchpad_status() abort
|
||||||
if s:touchpadoff
|
if s:touchpadoff
|
||||||
|
@ -174,8 +174,10 @@ function! zvim#util#OpenVimfiler() abort
|
|||||||
VimFiler
|
VimFiler
|
||||||
AirlineRefresh
|
AirlineRefresh
|
||||||
wincmd p
|
wincmd p
|
||||||
IndentLinesToggle
|
if &filetype !=# 'startify'
|
||||||
IndentLinesToggle
|
IndentLinesToggle
|
||||||
|
IndentLinesToggle
|
||||||
|
endif
|
||||||
wincmd p
|
wincmd p
|
||||||
else
|
else
|
||||||
VimFiler
|
VimFiler
|
||||||
|
@ -98,7 +98,7 @@ let s:plugins.unite = [
|
|||||||
\ ['voi/unite-ctags'],
|
\ ['voi/unite-ctags'],
|
||||||
\ ['Shougo/unite-session'],
|
\ ['Shougo/unite-session'],
|
||||||
\ ['osyo-manga/unite-quickfix'],
|
\ ['osyo-manga/unite-quickfix'],
|
||||||
\ ['Shougo/vimfiler.vim',{'on_cmd' : 'VimFiler', 'loadconf' : 1 , 'loadconf_before' : 1}],
|
\ ['Shougo/vimfiler.vim',{'merged' : 0, 'loadconf' : 1 , 'loadconf_before' : 1}],
|
||||||
\ ['ujihisa/unite-colorscheme'],
|
\ ['ujihisa/unite-colorscheme'],
|
||||||
\ ['mattn/unite-gist'],
|
\ ['mattn/unite-gist'],
|
||||||
\ ['tacroe/unite-mark'],
|
\ ['tacroe/unite-mark'],
|
||||||
@ -386,7 +386,7 @@ if zvim#plug#enable_plug()
|
|||||||
let g:indentLine_char = '¦'
|
let g:indentLine_char = '¦'
|
||||||
let g:indentLine_concealcursor = 'niv' " (default 'inc')
|
let g:indentLine_concealcursor = 'niv' " (default 'inc')
|
||||||
let g:indentLine_conceallevel = 2 " (default 2)
|
let g:indentLine_conceallevel = 2 " (default 2)
|
||||||
let g:indentLine_fileTypeExclude = ['help', 'startify']
|
let g:indentLine_fileTypeExclude = ['help', 'startify', 'vimfiler']
|
||||||
call zvim#plug#add('godlygeek/tabular', { 'on_cmd': 'Tabularize'})
|
call zvim#plug#add('godlygeek/tabular', { 'on_cmd': 'Tabularize'})
|
||||||
call zvim#plug#add('benizi/vim-automkdir')
|
call zvim#plug#add('benizi/vim-automkdir')
|
||||||
"[c ]c jump between prev or next hunk
|
"[c ]c jump between prev or next hunk
|
||||||
|
@ -29,6 +29,7 @@ let g:startify_list_order = [
|
|||||||
\ ]
|
\ ]
|
||||||
"let g:startify_bookmarks = [ {'c': '~/.vimrc'}, '~/.zshrc' ]
|
"let g:startify_bookmarks = [ {'c': '~/.vimrc'}, '~/.zshrc' ]
|
||||||
let g:startify_update_oldfiles = 1
|
let g:startify_update_oldfiles = 1
|
||||||
|
let g:startify_disable_at_vimenter = 1
|
||||||
let g:startify_session_autoload = 1
|
let g:startify_session_autoload = 1
|
||||||
let g:startify_session_persistence = 1
|
let g:startify_session_persistence = 1
|
||||||
"let g:startify_session_delete_buffers = 0
|
"let g:startify_session_delete_buffers = 0
|
||||||
|
@ -42,10 +42,10 @@ call vimfiler#custom#profile('default', 'context', {
|
|||||||
\ 'force_hide' : 0,
|
\ 'force_hide' : 0,
|
||||||
\ })
|
\ })
|
||||||
augroup vfinit
|
augroup vfinit
|
||||||
autocmd FileType vimfiler call s:vimfilerinit()
|
au!
|
||||||
"autocmd VimEnter * if !argc() | VimFiler | endif
|
autocmd FileType vimfiler call s:vimfilerinit()
|
||||||
autocmd BufEnter * if (winnr('$') == 1 && &filetype ==# 'vimfiler') |
|
autocmd BufEnter * if (winnr('$') == 1 && &filetype ==# 'vimfiler') |
|
||||||
\ q | endif
|
\ q | endif
|
||||||
augroup END
|
augroup END
|
||||||
function! s:vimfilerinit()
|
function! s:vimfilerinit()
|
||||||
set nonumber
|
set nonumber
|
||||||
|
Loading…
Reference in New Issue
Block a user