aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-08-05 22:24:07 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-08-06 13:44:18 +0200
commit2084b81c593cd5ebefe0d6b19dfad2c85811d0a6 (patch)
treed788e3c037becf21c6612a79c055d433fe41f5dd /config.def.h
parenteb97a63b373f9ef56f735dffba162473b6d17104 (diff)
downloadvis-2084b81c593cd5ebefe0d6b19dfad2c85811d0a6.tar.gz
vis-2084b81c593cd5ebefe0d6b19dfad2c85811d0a6.tar.xz
vis: implement gp and gP add count support to put operations
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index 3736833..5269ea4 100644
--- a/config.def.h
+++ b/config.def.h
@@ -211,8 +211,10 @@ static KeyBinding vis_operators[] = {
{ { NONE('d') }, operator, { .i = OP_DELETE } },
{ { NONE('c') }, operator, { .i = OP_CHANGE } },
{ { NONE('y') }, operator, { .i = OP_YANK } },
- { { NONE('p') }, put, { .i = +1 } },
- { { NONE('P') }, put, { .i = -1 } },
+ { { NONE('p') }, put, { .i = PUT_AFTER } },
+ { { NONE('P') }, put, { .i = PUT_BEFORE } },
+ { { NONE('g'), NONE('p') }, put, { .i = PUT_AFTER_END } },
+ { { NONE('g'), NONE('P') }, put, { .i = PUT_BEFORE_END } },
{ { NONE('>') }, operator, { .i = OP_SHIFT_RIGHT } },
{ { NONE('<') }, operator, { .i = OP_SHIFT_LEFT } },
{ { NONE('g'), NONE('U') }, changecase, { .i = +1 } },