1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 23:10:04 +08:00
SpaceVim/config/plugins/vim-startify.vim

56 lines
2.4 KiB
VimL
Raw Normal View History

2017-01-04 23:53:49 +08:00
let g:startify_custom_header = get(g:, 'startify_custom_header', [
2017-03-06 23:26:26 +08:00
\'',
\'',
\' /###### /## /##/## ',
\' /##__ ## | ## | #|__/ ',
\' | ## \__/ /###### /###### /####### /######| ## | ##/##/######/#### ',
\' | ###### /##__ ##|____ ##/##_____//##__ #| ## / ##| #| ##_ ##_ ##',
\' \____ #| ## \ ## /######| ## | ########\ ## ##/| #| ## \ ## \ ##',
\' /## \ #| ## | ##/##__ #| ## | ##_____/ \ ###/ | #| ## | ## | ##',
\' | ######| #######| ######| ######| ####### \ #/ | #| ## | ## | ##',
\' \______/| ##____/ \_______/\_______/\_______/ \_/ |__|__/ |__/ |__/',
\' | ## ',
\' | ## ',
\' |__/ ',
\' version : ' . g:spacevim_version . ' by : spacevim.org',
\'',
\ ])
2016-12-26 21:11:19 +08:00
let g:startify_session_dir = $HOME . '/.data/' . ( has('nvim') ? 'nvim' : 'vim' ) . '/session'
let g:startify_files_number = 6
let g:startify_list_order = [
2017-03-06 23:26:26 +08:00
\ [' My most recently used files in the current directory:'],
\ 'dir',
\ [' My most recently used files:'],
\ 'files',
\ [' These are my sessions:'],
\ 'sessions',
\ [' These are my bookmarks:'],
\ 'bookmarks',
\ ]
2016-12-26 21:11:19 +08:00
"let g:startify_bookmarks = [ {'c': '~/.vimrc'}, '~/.zshrc' ]
let g:startify_update_oldfiles = 1
2017-01-07 10:50:28 +08:00
let g:startify_disable_at_vimenter = 1
2016-12-26 21:11:19 +08:00
let g:startify_session_autoload = 1
let g:startify_session_persistence = 1
"let g:startify_session_delete_buffers = 0
let g:startify_change_to_dir = 0
"let g:startify_change_to_vcs_root = 0 " vim-rooter has same feature
let g:startify_skiplist = [
2017-03-06 23:26:26 +08:00
\ 'COMMIT_EDITMSG',
\ escape(fnamemodify(resolve($VIMRUNTIME), ':p'), '\') .'doc',
\ 'bundle/.*/doc',
\ ]
2016-12-26 21:11:19 +08:00
fu! <SID>startify_mapping()
2017-03-06 23:26:26 +08:00
if getcwd() == $VIM || getcwd() == expand('~')
nnoremap <silent><buffer> <c-p> :<c-u>CtrlP ~\DotFiles<cr>
endif
2016-12-26 21:11:19 +08:00
endf
augroup startify_map
2017-03-06 23:26:26 +08:00
au!
autocmd FileType startify nnoremap <buffer><F2> <Nop>
autocmd FileType startify call <SID>startify_mapping()
autocmd FileType startify set scrolloff=0
2016-12-26 21:11:19 +08:00
augroup END
2017-03-06 23:26:26 +08:00
" vim:set et sw=2: