aboutsummaryrefslogtreecommitdiff
path: root/plugin/replace_operator.vim
blob: ea5f3b12cb29a3eb4e3b522e744edb9952e8ceac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"
" replace_operator.vim: Replace text selected with a motion with the contents
" of a register in a repeatable way.
"
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
if exists('loaded_replace_operator') || &compatible || v:version < 700
  finish
endif
let loaded_replace_operator = 1

" Set up mapping
nnoremap <expr> <Plug>(ReplaceOperator)
      \ replace_operator#(v:register)
xnoremap <expr> <Plug>(ReplaceOperator)
      \ replace_operator#(v:register)