aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-23 23:54:35 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-23 23:54:35 +0200
commit1693856c4f6449fdf747ea822b9691954c9ed9a7 (patch)
treefa9afbf8e71f058a7d8d800479b744656d0ed4aa /config.def.h
parentb9e7c69b920f7efaae2b8b161d97c11704d34d1d (diff)
downloadvis-1693856c4f6449fdf747ea822b9691954c9ed9a7.tar.gz
vis-1693856c4f6449fdf747ea822b9691954c9ed9a7.tar.xz
Implement 'P', fix 'p'
This should also make 'xp' work as expected i.e. to swap characters.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index cee3dee..9513a2a 100644
--- a/config.def.h
+++ b/config.def.h
@@ -199,7 +199,8 @@ static KeyBinding vis_operators[] = {
{ { NONE('d') }, operator, { .i = OP_DELETE } },
{ { NONE('c') }, operator, { .i = OP_CHANGE } },
{ { NONE('y') }, operator, { .i = OP_YANK } },
- { { NONE('p') }, operator, { .i = OP_PUT } },
+ { { NONE('p') }, put, { .i = +1 } },
+ { { NONE('P') }, put, { .i = -1 } },
{ { NONE('>') }, operator, { .i = OP_SHIFT_RIGHT } },
{ { NONE('<') }, operator, { .i = OP_SHIFT_LEFT } },
{ /* empty last element, array terminator */ },