diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-01-18 13:48:14 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-01-18 13:48:14 +0100 |
| commit | 34fcaaa8ab2f50919c2a10defdcd9828df91fdc6 (patch) | |
| tree | bfc877ca1953fde89a6c5beb7298dfc21aac24cd /vim/golf | |
| parent | 32321e7a39966e901c25c955ab392fc46c6088a9 (diff) | |
| download | vis-34fcaaa8ab2f50919c2a10defdcd9828df91fdc6.tar.gz vis-34fcaaa8ab2f50919c2a10defdcd9828df91fdc6.tar.xz | |
test/vim: use macro count specifier where appropriate
Diffstat (limited to 'vim/golf')
| -rw-r--r-- | vim/golf/4d1a34ccfa85f32065000004/1.keys | 2 | ||||
| -rw-r--r-- | vim/golf/4ddbd92898957e0001000016/1.keys | 14 | ||||
| -rw-r--r-- | vim/golf/4fbf8e303be58b0001000024/1.keys | 5 | ||||
| -rw-r--r-- | vim/golf/50ae009b65b8db0002000047/1.keys | 5 |
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 |
