From 34fcaaa8ab2f50919c2a10defdcd9828df91fdc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 18 Jan 2017 13:48:14 +0100 Subject: test/vim: use macro count specifier where appropriate --- vim/golf/4d1a34ccfa85f32065000004/1.keys | 2 +- vim/golf/4ddbd92898957e0001000016/1.keys | 14 +------------- vim/golf/4fbf8e303be58b0001000024/1.keys | 5 +---- vim/golf/50ae009b65b8db0002000047/1.keys | 5 ++--- 4 files changed, 5 insertions(+), 21 deletions(-) (limited to 'vim') diff --git a/vim/golf/4d1a34ccfa85f32065000004/1.keys b/vim/golf/4d1a34ccfa85f32065000004/1.keys index 2dc4750..c5e05d8 100644 --- 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 index d619478..dfa5ea7 100644 --- 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 index 33ea81d..cc4759e 100644 --- a/vim/golf/4fbf8e303be58b0001000024/1.keys +++ b/vim/golf/4fbf8e303be58b0001000024/1.keys @@ -7,10 +7,7 @@ t}a e.x q @q -@@ -@@ -@@ -@@ +4@@ gg /* go to very first { of file */ % /* go to matching bracket at end of file */ i /* move it to a new line */ diff --git a/vim/golf/50ae009b65b8db0002000047/1.keys b/vim/golf/50ae009b65b8db0002000047/1.keys index 6d8c6d6..24e8eef 100644 --- 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 -- cgit v1.2.3