1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 22:30:04 +08:00

Add g& : repeat last ':s' on all lines

This commit is contained in:
wsdjeg 2017-06-10 16:12:47 +08:00
parent 14a3116fc6
commit e6ca778db7

View File

@ -4,4 +4,7 @@ function! SpaceVim#mapping#g#init() abort
let g:_spacevim_mappings_g = {}
let g:_spacevim_mappings_g['<C-g>'] = ['call feedkeys("g<c-g>", "n")', 'show cursor info']
nnoremap g<c-g> g<c-g>
let g:_spacevim_mappings_g['&'] = ['call feedkeys("g&", "n")', 'repeat last ":s" on all lines']
nnoremap g& g&
endfunction