vis

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

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

commit 74669fdfa33333b918b4df1447ef45cb9f653f32
parent bf1edae5657a438d276cdf3cad0a6d67bdc75bb3
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sat, 13 Sep 2014 17:06:33 +0200

In normal mode 'r' should also replace new lines

Diffstat:
Mvis.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vis.c b/vis.c @@ -515,7 +515,8 @@ static void replace(const Arg *arg) { Key k = getkey(); if (!k.str[0]) return; - editor_replace_key(vis, k.str, strlen(k.str)); + editor_delete_key(vis); + editor_insert_key(vis, k.str, strlen(k.str)); } static void count(const Arg *arg) {