vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 48bc4145b3c24d0c19b4dd8a0a330130604a19f8
parent 5288a50ce35e19b75c37b150ca9009c9cfed27d0
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Thu, 26 Apr 2018 15:32:07 +0200

vis: remove gP

This only removes the user visible mapping, the underlying implementation
is kept for now. It is used in insert mode for the implementation of <C-r>
(register insertion).

Diffstat:
Mconfig.def.h | 1-
Mmain.c | 6------
2 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -180,7 +180,6 @@ static const KeyBinding bindings_operators[] = { { "c", ACTION(OPERATOR_CHANGE) }, { "d", ACTION(OPERATOR_DELETE) }, { "g~", ALIAS(":|tr '[:lower:][:upper:]' '[:upper:][:lower:]'<Enter>") }, - { "gP", ACTION(PUT_BEFORE_END) }, { "gu", ALIAS(":|tr '[:upper:]' '[:lower:]'<Enter>")}, { "gU", ALIAS(":|tr '[:lower:]' '[:upper:]'<Enter>")}, { "p", ACTION(PUT_AFTER) }, diff --git a/main.c b/main.c @@ -260,7 +260,6 @@ enum { VIS_ACTION_WINDOW_SLIDE_DOWN, VIS_ACTION_PUT_AFTER, VIS_ACTION_PUT_BEFORE, - VIS_ACTION_PUT_BEFORE_END, VIS_ACTION_SELECTIONS_MATCH_WORD, VIS_ACTION_SELECTIONS_NEW_LINE_ABOVE, VIS_ACTION_SELECTIONS_NEW_LINE_ABOVE_FIRST, @@ -895,11 +894,6 @@ static const KeyAction vis_action[] = { VIS_HELP("Put text before the cursor") operator, { .i = VIS_OP_PUT_BEFORE } }, - [VIS_ACTION_PUT_BEFORE_END] = { - "vis-put-before-end", - VIS_HELP("Put text before the cursor, place cursor after new text") - operator, { .i = VIS_OP_PUT_BEFORE_END } - }, [VIS_ACTION_SELECTIONS_MATCH_WORD] = { "vis-selections-select-word", VIS_HELP("Select word under cursor")