mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 01:10:05 +08:00
Add head
This commit is contained in:
parent
01edbcb7bc
commit
6c679e8bb8
@ -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
|
" @section API, api
|
||||||
" SpaceVim contains a variety of public apis. here is a list of all the apis.
|
" SpaceVim contains a variety of public apis. here is a list of all the apis.
|
||||||
|
@ -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
|
"autocmds
|
||||||
function! SpaceVim#autocmds#init() abort
|
function! SpaceVim#autocmds#init() abort
|
||||||
augroup My_autocmds
|
augroup SpaceVim_core
|
||||||
au!
|
au!
|
||||||
autocmd BufWinEnter quickfix nnoremap <silent> <buffer>
|
autocmd BufWinEnter quickfix nnoremap <silent> <buffer>
|
||||||
\ q :cclose<cr>:lclose<cr>
|
\ q :cclose<cr>:lclose<cr>
|
||||||
@ -57,9 +65,6 @@ function! SpaceVim#autocmds#init() abort
|
|||||||
endif
|
endif
|
||||||
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 SpaceVimInit
|
|
||||||
au!
|
|
||||||
autocmd VimEnter * if !argc() | call SpaceVim#welcome() | endif
|
autocmd VimEnter * if !argc() | call SpaceVim#welcome() | endif
|
||||||
augroup END
|
augroup END
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -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)
|
" @vimlint(EVL103, 1, a:buffers)
|
||||||
function! airline#extensions#tabline#formatters#spacevim#format(bufnr, buffers) abort
|
function! airline#extensions#tabline#formatters#spacevim#format(bufnr, buffers) abort
|
||||||
let g:_spacevim_list_buffers = a:buffers
|
let g:_spacevim_list_buffers = a:buffers
|
||||||
|
Loading…
Reference in New Issue
Block a user