vis

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

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

commit eae774907a4933b4f1844a6ac5c3e316f4388eb9
parent 916c5eeca780c969fc538d9c530b01f86cc7fb3f
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Wed,  9 Nov 2016 22:07:39 +0100

test/vim: test cancelation of `r` command

Diffstat:
Mvim/operators/replace/replace.keys | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/vim/operators/replace/replace.keys b/vim/operators/replace/replace.keys @@ -3,6 +3,8 @@ t{r<Enter> /* replace space with new line */ 3r= /* replace --- with === */ n /* advance to next match */ . /* repeat */ +r<Escape> /* cancel, should not alter text */ n /* advance to next match */ v2e /* select something in visual mode */ +r<Escape> /* cancel, should not alter text */ r= /* replace selection */