vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 116a9bb315abd783457242ed416141f0201c2d16 parent 95b489ed74760223e629b13e29b8fc13c2f6db20 Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 18 Feb 2016 21:05:59 +0100 vis: make put commands p, P, gp, gP available in visual modes Close #167 Diffstat:
| M | config.def.h | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/config.def.h b/config.def.h @@ -156,6 +156,10 @@ static const KeyBinding bindings_operators[] = { { "gu", ACTION(OPERATOR_CASE_LOWER) }, { "!", ACTION(OPERATOR_FILTER) }, { "=", ACTION(OPERATOR_FILTER_FMT) }, + { "p", ACTION(PUT_AFTER) }, + { "P", ACTION(PUT_BEFORE) }, + { "gp", ACTION(PUT_AFTER_END) }, + { "gP", ACTION(PUT_BEFORE_END) }, { "\"", ACTION(REGISTER) }, { 0 /* empty last element, array terminator */ }, }; @@ -236,10 +240,6 @@ static const KeyBinding bindings_normal[] = { { "m", ACTION(MARK_SET) }, { "<F1>", ALIAS(":help<Enter>") }, { "ga", ACTION(UNICODE_INFO) }, - { "p", ACTION(PUT_AFTER) }, - { "P", ACTION(PUT_BEFORE) }, - { "gp", ACTION(PUT_AFTER_END) }, - { "gP", ACTION(PUT_BEFORE_END) }, { "~", ALIAS("<vis-operator-case-swap>l") }, { "<End>", ALIAS("$") }, { "gf", ACTION(OPEN_FILE_UNDER_CURSOR) },