aboutsummaryrefslogtreecommitdiff
path: root/vim/config/substitution.vim
blob: f2d7b665c98f4670642bb81513103d1a701d9ac8 (plain) (blame)
1
2
3
4
5
6
7
8
" Preserve the flags for a pattern when repeating a substitution with &; I
" don't really understand why this isn't a default, but there it is
nnoremap <silent>
      \ &
      \ :<C-U>&&<CR>
xnoremap <silent>
      \ &
      \ :<C-U>&&<CR>