aboutsummaryrefslogtreecommitdiff
path: root/doc/replace_operator.txt
blob: faf247fe7b7678264ff33d7c1696f15031ef7a61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
*replace_operator.txt*	For Vim version 7.0	Last change: 2018 Aug 22

DESCRIPTION				*replace_operator*

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.

REQUIREMENTS				*replace_operator-requirements*

This plugin only loads if 'compatible' is not set.

MAPPINGS				*replace_operator-mappings*

					*<Plug>(RepeatOperator)*
The normal and visual mode mapping targets are both named
|<Plug>(RepeatOperator)|.  There are no default key mappings; you should
define one yourself in your |vimrc|.  For example:
>
	nmap <Leader>r <Plug>(ReplaceOperator)
	xmap <Leader>r <Plug>(ReplaceOperator)
<
AUTHOR					*replace_operator-author*

Written and maintained by Tom Ryder <tom@sanctum.geek.nz>.

LICENSE					*replace_operator-license*

Licensed for distribution under the same terms as Vim itself (see |license|).

 vim:tw=78:ts=8:ft=help:norl: