1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 00:10:07 +08:00

feat(mapping): add SPC b <C-D>

This commit is contained in:
Wang Shidong 2022-02-03 22:05:46 +08:00 committed by GitHub
parent f73a5cb205
commit ee199f05cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -261,6 +261,7 @@ function! SpaceVim#layers#core#config() abort
\ 'call SpaceVim#mapping#kill_visible_buffer_choosewin()',
\ 'delete-the-selected-buffer', 1)
call SpaceVim#mapping#space#def('nnoremap', ['b', '<C-d>'], 'call SpaceVim#mapping#clear_buffers()', 'kill-other-buffers', 1)
call SpaceVim#mapping#space#def('nnoremap', ['b', '<C-S-d>'], 'call SpaceVim#mapping#kill_buffer_expr()', 'kill-buffers-by-regexp', 1)
call SpaceVim#mapping#space#def('nnoremap', ['b', 'c'], 'call SpaceVim#mapping#clear_saved_buffers()', 'clear-all-saved-buffers', 1)
call SpaceVim#mapping#space#def('nnoremap', ['b', 'e'], 'call call('
\ . string(s:_function('s:safe_erase_buffer')) . ', [])',

View File

@ -126,6 +126,12 @@ function! SpaceVim#mapping#clear_buffers() abort
endif
endfor
endif
endfunction
function! SpaceVim#mapping#kill_buffer_expr() abort
endfunction
function! SpaceVim#mapping#split_previous_buffer() abort