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

Add +files group mappings

This commit is contained in:
wsdjeg 2017-04-18 22:31:49 +08:00
parent 2f7fda525f
commit 39fe17058b
2 changed files with 3 additions and 0 deletions

View File

@ -9,4 +9,6 @@ function! SpaceVim#layers#default#plugins() abort
endfunction
function! SpaceVim#layers#default#config() abort
call SpaceVim#mapping#space#def('nnoremap', ['f', 's'], 'write', 'save buffer', 1)
call SpaceVim#mapping#space#def('nnoremap', ['f', 'S'], 'wall', 'save all buffer', 1)
endfunction

View File

@ -9,6 +9,7 @@ function! SpaceVim#mapping#space#init() abort
let g:_spacevim_mappings_space.t = {'name' : '+Toggle editor visuals'}
let g:_spacevim_mappings_space.a = {'name' : '+Applications'}
let g:_spacevim_mappings_space.b = {'name' : '+Buffers'}
let g:_spacevim_mappings_space.f = {'name' : '+Files'}
nnoremap <silent> [SPC]bn :bnext<CR>
let g:_spacevim_mappings_space.b.n = ['bnext', 'next buffer']
call SpaceVim#mapping#menu('Open next buffer', '[SPC]bn', 'bp')