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

Add unimpaired bindings [c and ]c

This commit is contained in:
wsdjeg 2017-05-25 00:48:45 +08:00
parent 9884ea2c56
commit 4310dfa545
2 changed files with 8 additions and 2 deletions

View File

@ -26,6 +26,12 @@ function! SpaceVim#layers#default#config() abort
nnoremap <silent> ]f :<c-u>call <SID>next_file()<cr>
nnoremap <silent> [f :<c-u>call <SID>previous_file()<cr>
" [l or ]l go to next and previous error
nnoremap <silent> [l :lprevious<cr>
nnoremap <silent> ]l :lnext<cr>
" [c or ]c go to next or previous vcs hunk
call SpaceVim#mapping#space#def('nnoremap', ['f', 'f'], "exe 'CtrlP ' . fnamemodify(bufname('%'), ':h')", 'Find files in the directory of the current buffer', 1)
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)

View File

@ -590,8 +590,8 @@ Mappings | Description
`] f` | Go to next file in directory
`[ l` | Go to the previous error
`] l` | Go to the next error
`[ h` | Go to the previous vcs hunk
`] h` | Go to the next vcs hunk
`[ c` | Go to the previous vcs hunk
`] c` | Go to the next vcs hunk
`[ q` | Go to the previous error
`] q` | Go to the next error
`[ t` | Go to the previous frame