vis

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

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

commit 7d3ad834a868ef1e833c89ef24f9b500a0586f52
parent a66cbe63baac46f8fc4f2c1e645bb9178250b980
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Wed, 18 Jan 2017 13:48:14 +0100

test/vim: use macro count specifier where appropriate

Diffstat:
Mvim/golf/4d1a34ccfa85f32065000004/1.keys | 3+--
Mvim/golf/4ddbd92898957e0001000016/1.keys | 14+-------------
Mvim/golf/4fbf8e303be58b0001000024/1.keys | 5+----
Mvim/golf/50ae009b65b8db0002000047/1.keys | 6++----
4 files changed, 5 insertions(+), 23 deletions(-)

diff --git a/vim/golf/4d1a34ccfa85f32065000004/1.keys b/vim/golf/4d1a34ccfa85f32065000004/1.keys @@ -3,4 +3,4 @@ qa /* start macro recording */ jyypjdd /* move down, yank, put, delete line below */ q /* stop macro recording */ @a /* replay macro */ -@@ /* replay again (TODO: support count for macro replay) */ -\ No newline at end of file +@@ /* replay again */ diff --git a/vim/golf/4ddbd92898957e0001000016/1.keys b/vim/golf/4ddbd92898957e0001000016/1.keys @@ -5,16 +5,4 @@ N /* repeat search */ P /* put before */ 2j /* 2 lines down */ q /* stop macro recording */ -@q /* 11@q repeat macro 11 times */ -@@ -@@ -@@ -@@ -@@ -@@ -@@ -@@ -@@ -@@ -@@ -@@ +11@q /* repeat macro 11 times */ diff --git a/vim/golf/4fbf8e303be58b0001000024/1.keys b/vim/golf/4fbf8e303be58b0001000024/1.keys @@ -7,10 +7,7 @@ t}a<Enter><Space><Space><Escape> e.x q @q -@@ -@@ -@@ -@@ +4@@ gg /* go to very first { of file */ % /* go to matching bracket at end of file */ i<Enter><Escape> /* move it to a new line */ diff --git a/vim/golf/50ae009b65b8db0002000047/1.keys b/vim/golf/50ae009b65b8db0002000047/1.keys @@ -1,7 +1,6 @@ qq g~2l xp ++ q -+@q -+@@ -+@@ -\ No newline at end of file +3@q