mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 11:50:05 +08:00
Update vim layer
This commit is contained in:
parent
a3e0b99499
commit
39151c8e78
@ -57,9 +57,6 @@ function! SpaceVim#autocmds#init() abort
|
|||||||
\| endif
|
\| endif
|
||||||
"}}}
|
"}}}
|
||||||
autocmd FileType python,coffee call zvim#util#check_if_expand_tab()
|
autocmd FileType python,coffee call zvim#util#check_if_expand_tab()
|
||||||
" Instead of reverting the cursor to the last position in the buffer, we
|
|
||||||
" set it to the first line when editing a git commit message
|
|
||||||
au FileType gitcommit au! BufEnter COMMIT_EDITMSG call setpos('.', [0, 1, 1, 0])
|
|
||||||
au StdinReadPost * call s:disable_welcome()
|
au StdinReadPost * call s:disable_welcome()
|
||||||
autocmd InsertEnter * call s:fixindentline()
|
autocmd InsertEnter * call s:fixindentline()
|
||||||
autocmd BufEnter,FileType * call SpaceVim#mapping#space#refrashLSPC()
|
autocmd BufEnter,FileType * call SpaceVim#mapping#space#refrashLSPC()
|
||||||
|
@ -45,6 +45,9 @@ function! SpaceVim#layers#git#config() abort
|
|||||||
autocmd FileType diff nnoremap <buffer><silent> q :bd!<CR>
|
autocmd FileType diff nnoremap <buffer><silent> q :bd!<CR>
|
||||||
autocmd FileType gitcommit setl omnifunc=SpaceVim#plugins#gitcommit#complete
|
autocmd FileType gitcommit setl omnifunc=SpaceVim#plugins#gitcommit#complete
|
||||||
autocmd User GitGutter let &l:statusline = SpaceVim#layers#core#statusline#get(1)
|
autocmd User GitGutter let &l:statusline = SpaceVim#layers#core#statusline#get(1)
|
||||||
|
" Instead of reverting the cursor to the last position in the buffer, we
|
||||||
|
" set it to the first line when editing a git commit message
|
||||||
|
au FileType gitcommit au! BufEnter COMMIT_EDITMSG call setpos('.', [0, 1, 1, 0])
|
||||||
augroup END
|
augroup END
|
||||||
call SpaceVim#mapping#space#def('nnoremap', ['g', 'M'], 'call call('
|
call SpaceVim#mapping#space#def('nnoremap', ['g', 'M'], 'call call('
|
||||||
\ . string(function('s:display_last_commit_of_current_line')) . ', [])',
|
\ . string(function('s:display_last_commit_of_current_line')) . ', [])',
|
||||||
|
@ -13,8 +13,8 @@ function! SpaceVim#layers#lang#vim#plugins() abort
|
|||||||
\ ['ynkdir/vim-vimlparser', { 'on_ft' : 'vim'}],
|
\ ['ynkdir/vim-vimlparser', { 'on_ft' : 'vim'}],
|
||||||
\ ['todesking/vint-syntastic', { 'on_ft' : 'vim'}],
|
\ ['todesking/vint-syntastic', { 'on_ft' : 'vim'}],
|
||||||
\ ]
|
\ ]
|
||||||
call add(plugins,['tweekmonster/exception.vim'])
|
call add(plugins,['tweekmonster/exception.vim', {'merged' : 0}])
|
||||||
call add(plugins,['mhinz/vim-lookup'])
|
call add(plugins,['mhinz/vim-lookup', {'merged' : 0}])
|
||||||
call add(plugins,['Shougo/neco-vim', { 'on_event' : 'InsertEnter', 'loadconf_before' : 1}])
|
call add(plugins,['Shougo/neco-vim', { 'on_event' : 'InsertEnter', 'loadconf_before' : 1}])
|
||||||
if g:spacevim_autocomplete_method == 'asyncomplete'
|
if g:spacevim_autocomplete_method == 'asyncomplete'
|
||||||
call add(plugins, ['prabirshrestha/asyncomplete-necovim.vim', {
|
call add(plugins, ['prabirshrestha/asyncomplete-necovim.vim', {
|
||||||
@ -39,6 +39,7 @@ function! s:language_specified_mappings() abort
|
|||||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','v'], 'call call('
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','v'], 'call call('
|
||||||
\ . string(function('s:helpversion_cursor')) . ', [])',
|
\ . string(function('s:helpversion_cursor')) . ', [])',
|
||||||
\ 'echo helpversion under cursor', 1)
|
\ 'echo helpversion under cursor', 1)
|
||||||
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','f'], 'call exception#trace()', 'tracing exceptions', 1)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:eval_cursor() abort
|
function! s:eval_cursor() abort
|
||||||
|
Loading…
Reference in New Issue
Block a user