1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 03:00:06 +08:00

Add key binding desc for SPC '

This commit is contained in:
wsdjeg 2017-09-07 23:00:28 +00:00
parent fa819c285b
commit 7a7eb1a922

View File

@ -17,11 +17,18 @@ function! SpaceVim#layers#shell#plugins() abort
return plugins return plugins
endfunction endfunction
let s:file = expand('<sfile>:~')
let s:lnum = expand('<slnum>') + 2
function! SpaceVim#layers#shell#config() abort function! SpaceVim#layers#shell#config() abort
call SpaceVim#mapping#space#def('nnoremap', ["'"], 'call call(' call SpaceVim#mapping#space#def('nnoremap', ["'"], 'call call('
\ . string(function('s:open_default_shell')) . ', [])', \ . string(function('s:open_default_shell')) . ', [])',
\ 'open shell', 1) \ ['open shell',
\ [
\ "[SPC '] is to open or jump to default shell window",
\ '',
\ 'Definition: ' . s:file . ':' . s:lnum,
\ ]
\ ], 1)
endfunction endfunction