vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 443137cd71a32552d192118eb753ad8df7277a1c parent bf968a773577cfe43c4da2f6911c54fdc27a587f Author: Marc André Tanner <mat@brain-dump.org> Date: Sat, 19 Nov 2016 10:46:25 +0100 test/vim: fixup some of the previously broken tests Diffstat:
| A | vim/golf/4e31627b74ab580001000007/1.keys | | | 22 | ++++++++++++++++++++++ |
| D | vim/golf/4e31627b74ab580001000007/1.keys.broken | | | 22 | ---------------------- |
| R | vim/golf/50ad2cb165b8db0002000029/1.keys.broken -> vim/golf/50ad2cb165b8db0002000029/1.keys | | | 0 |
3 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/vim/golf/4e31627b74ab580001000007/1.keys b/vim/golf/4e31627b74ab580001000007/1.keys @@ -0,0 +1,22 @@ +dd +ipublic <Escape> +:%s,\$this->,,g<Enter> /* we use , as delimiter because // interferes with the CPP */ +:%s,\$,,g<Enter> +:%s,private var,private double var,<Enter> +/sqrt<Enter> +iMath.<Escape> +gg +/function<Enter> +dw +n +cwvoid<Escape> +n +. +n +cwdouble<Escape> +gg +/val<Enter> +idouble <Escape> /* in vim <Escape> moves the cursor 1 cell back, hence 2n will not do the right thing */ +fv /* accounts for this cursor is now at the start of "val" */ +2n. +Gdd diff --git a/vim/golf/4e31627b74ab580001000007/1.keys.broken b/vim/golf/4e31627b74ab580001000007/1.keys.broken @@ -1,21 +0,0 @@ -dd -ipublic <Escape> -:%s,\$this->,,g<Enter> /* we use , as delimiter because // interferes with the CPP */ -:%s,\$,,g<Enter> -:%s,private var,private double var,<Enter> -/sqrt<Enter> -iMath.<Escape> -gg -/function<Enter> -dw -n -cwvoid<Escape> -n -. -n -cwdouble<Escape> -gg -/val -idouble <Escape> -2n. -/><Enter>dd /* TODO: Gdd does not work */ -\ No newline at end of file diff --git a/vim/golf/50ad2cb165b8db0002000029/1.keys.broken b/vim/golf/50ad2cb165b8db0002000029/1.keys