aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-01-18 13:48:14 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-01-18 13:48:14 +0100
commit34fcaaa8ab2f50919c2a10defdcd9828df91fdc6 (patch)
treebfc877ca1953fde89a6c5beb7298dfc21aac24cd
parent32321e7a39966e901c25c955ab392fc46c6088a9 (diff)
downloadvis-34fcaaa8ab2f50919c2a10defdcd9828df91fdc6.tar.gz
vis-34fcaaa8ab2f50919c2a10defdcd9828df91fdc6.tar.xz
test/vim: use macro count specifier where appropriate
-rw-r--r--vim/golf/4d1a34ccfa85f32065000004/1.keys2
-rw-r--r--vim/golf/4ddbd92898957e0001000016/1.keys14
-rw-r--r--vim/golf/4fbf8e303be58b0001000024/1.keys5
-rw-r--r--vim/golf/50ae009b65b8db0002000047/1.keys5
4 files changed, 5 insertions, 21 deletions
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<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
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