1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 18:25:42 +08:00

feat(help): add help description for SPC b d

This commit is contained in:
Shidong Wang 2021-10-29 00:47:12 +08:00
parent 93d8a15363
commit 1ff40354b3
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848

View File

@ -229,7 +229,8 @@ function! SpaceVim#layers#core#config() abort
\ ] \ ]
\ , 1) \ , 1)
let lnum = expand('<slnum>') + s:lnum - 1 let lnum = expand('<slnum>') + s:lnum - 1
call SpaceVim#mapping#space#def('nnoremap', ['h', 'G'], 'call SpaceVim#plugins#helpgrep#help(expand("<cword>"))', call SpaceVim#mapping#space#def('nnoremap', ['h', 'G'],
\ 'call SpaceVim#plugins#helpgrep#help(expand("<cword>"))',
\ ['asynchronous-helpgrep-with-cword', \ ['asynchronous-helpgrep-with-cword',
\ [ \ [
\ '[SPC h g] is to run helpgrep asynchronously with cword', \ '[SPC h g] is to run helpgrep asynchronously with cword',
@ -238,7 +239,17 @@ function! SpaceVim#layers#core#config() abort
\ ] \ ]
\ ] \ ]
\ , 1) \ , 1)
call SpaceVim#mapping#space#def('nnoremap', ['b', 'd'], 'call SpaceVim#mapping#close_current_buffer()', 'delete-this-buffer', 1) let lnum = expand('<slnum>') + s:lnum - 1
call SpaceVim#mapping#space#def('nnoremap', ['b', 'd'],
\ 'call SpaceVim#mapping#close_current_buffer()',
\ ['delete-this-buffer',
\ [
\ '[SPC b d] is to delete current buffer',
\ '',
\ 'Definition: ' . s:filename . ':' . lnum,
\ ]
\ ]
\ , 1)
call SpaceVim#mapping#space#def('nnoremap', ['b', 'D'], call SpaceVim#mapping#space#def('nnoremap', ['b', 'D'],
\ 'call SpaceVim#mapping#kill_visible_buffer_choosewin()', \ 'call SpaceVim#mapping#kill_visible_buffer_choosewin()',
\ 'delete-the-selected-buffer', 1) \ 'delete-the-selected-buffer', 1)
@ -1071,3 +1082,5 @@ function! s:close_current_tab() abort
tabclose! tabclose!
endif endif
endfunction endfunction
" vim:set et sw=2 cc=80: