diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-23 23:54:35 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-23 23:54:35 +0200 |
| commit | 1693856c4f6449fdf747ea822b9691954c9ed9a7 (patch) | |
| tree | fa9afbf8e71f058a7d8d800479b744656d0ed4aa /config.def.h | |
| parent | b9e7c69b920f7efaae2b8b161d97c11704d34d1d (diff) | |
| download | vis-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.h | 3 |
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 */ }, |
