vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit c910de605a6e771f4f396d5b094e1e1c1cc86baa parent d30fd9d47475f09568afd65646e26a8756e59fc0 Author: Marc André Tanner <mat@brain-dump.org> Date: Wed, 8 Jul 2015 11:51:54 +0200 vis: make J (join) behave like in vim when given a count Diffstat:
| M | vis.c | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/vis.c b/vis.c @@ -1150,6 +1150,8 @@ static void openline(const Arg *arg) { } static void join(const Arg *arg) { + if (vis->action.count) + vis->action.count--; operator(&(const Arg){ .i = OP_JOIN }); movement(arg); }