From 2084b81c593cd5ebefe0d6b19dfad2c85811d0a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 5 Aug 2015 22:24:07 +0200 Subject: vis: implement gp and gP add count support to put operations --- config.def.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'config.def.h') 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 } }, -- cgit v1.2.3