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:
parent
f73a5cb205
commit
ee199f05cb
@ -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')) . ', [])',
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user