1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-15 08:09:11 +08:00

feat(mapping): add help description for SPC f s

This commit is contained in:
Shidong Wang 2021-11-13 15:39:09 +08:00
parent a84aa78836
commit c8c232f4a1
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848

View File

@ -143,9 +143,16 @@ function! SpaceVim#layers#core#config() abort
nnoremap <silent> [p P
nnoremap <silent> ]p p
let lnum = expand('<slnum>') + s:lnum - 1
call SpaceVim#mapping#space#def('nnoremap', ['f', 's'], 'call call('
\ . string(s:_function('s:save_current_file')) . ', [])',
\ 'save-current-file', 1)
\ ['save-current-file',
\ ['[SPC f s] is to save current file',
\ '',
\ 'Definition: ' . s:filename . ':' . lnum,
\ ]
\ ]
\ , 1)
call SpaceVim#mapping#space#def('nnoremap', ['f', 'a'], 'call call('
\ . string(s:_function('s:save_as_new_file')) . ', [])',
\ 'save-as-new-file', 1)