1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 20:10:05 +08:00
This commit is contained in:
wsdjeg 2017-03-19 20:20:33 +08:00
parent 01edbcb7bc
commit 6c679e8bb8
3 changed files with 25 additions and 4 deletions

View File

@ -1,3 +1,11 @@
" ============================================================================
" File: api.vim
" Description: SpaceVim api core file
" Author: Shidong Wang <wsdjeg@outlook.com>
" Website: https://spacevim.org
" License: MIT
" ============================================================================
""
" @section API, api
" SpaceVim contains a variety of public apis. here is a list of all the apis.

View File

@ -1,6 +1,14 @@
"=============================================================================
" autocmd.vim --- main autocmd group for spacevim
" Copyright (c) 2016-2017 Shidong Wang & Contributors
" Author: Shidong Wang < wsdjeg at 163.com >
" URL: https://spacevim.org
" License: MIT license
"=============================================================================
"autocmds
function! SpaceVim#autocmds#init() abort
augroup My_autocmds
augroup SpaceVim_core
au!
autocmd BufWinEnter quickfix nnoremap <silent> <buffer>
\ q :cclose<cr>:lclose<cr>
@ -57,9 +65,6 @@ function! SpaceVim#autocmds#init() abort
endif
autocmd BufWritePost *.vim call s:generate_doc()
autocmd FileType * set scrolloff=7
augroup END
augroup SpaceVimInit
au!
autocmd VimEnter * if !argc() | call SpaceVim#welcome() | endif
augroup END
endfunction

View File

@ -1,3 +1,11 @@
"=============================================================================
" spacevim.vim --- buffer name formatter for airline
" Copyright (c) 2016-2017 Shidong Wang & Contributors
" Author: Shidong Wang < wsdjeg at 163.com >
" URL: https://spacevim.org
" License: MIT license
"=============================================================================
" @vimlint(EVL103, 1, a:buffers)
function! airline#extensions#tabline#formatters#spacevim#format(bufnr, buffers) abort
let g:_spacevim_list_buffers = a:buffers