aboutsummaryrefslogblamecommitdiff
path: root/plugin/replace_operator.vim
blob: a8cf835d93a921bb16059d4862badfef6bb453fc (plain) (tree)
1
2
3
 

                                                                             












                                                     
                                       
                                        
                                       
                                        
"
" 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('g:loaded_replace_operator') || &compatible
  finish
endif
if v:version < 700
  finish
endif
let g:loaded_replace_operator = 1

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