replace_operator.vim : Replace text from register with a motion
| script karma
Downloaded by 51
Comments, bugs, improvements
script versions (upload new version)
|This plugin provides normal and visual mode mapping targets to replace the text bounded by a motion with the contents of a register, by default the unnamed register.
This allows you, for example, to select a set of lines and replace any other set of lines with it in one repeatable operation. The text you replace stacks up in the numbered registers as normal, if you do end up needing it back.
|Drop plugin/replace_operator.vim in your ~/.vim/plugin directory, and autoload/replace_operator.vim in ~/.vim/autoload. Add doc/replace_operator.txt in ~/.vim/doc if you want the help file. Otherwise, use your favourite Vim plugin package manager.
The normal and visual mode mapping targets are both named
<Plug>(RepeatOperator). There are no default key mappings; you should define
some yourself in your vimrc. For example:
nmap <Leader>r <Plug>(ReplaceOperator)
xmap <Leader>r <Plug>(ReplaceOperator)
Click on the package to download.
ip used for rating: 184.108.40.206