From e6ca778db75e2f67947417854118e5f318b81af3 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sat, 10 Jun 2017 16:12:47 +0800 Subject: [PATCH] Add g& : repeat last ':s' on all lines --- autoload/SpaceVim/mapping/g.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/SpaceVim/mapping/g.vim b/autoload/SpaceVim/mapping/g.vim index 954429ee6..fdf907228 100644 --- a/autoload/SpaceVim/mapping/g.vim +++ b/autoload/SpaceVim/mapping/g.vim @@ -4,4 +4,7 @@ function! SpaceVim#mapping#g#init() abort let g:_spacevim_mappings_g = {} let g:_spacevim_mappings_g[''] = ['call feedkeys("g", "n")', 'show cursor info'] nnoremap g g + let g:_spacevim_mappings_g['&'] = ['call feedkeys("g&", "n")', 'repeat last ":s" on all lines'] + nnoremap g& g& + endfunction