Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 9v0066f4e39400000000040b

Append leading hyphen count to each line

Append the number of leading hyphens to the end of each line.

Start file
----------bc4-099-80---e312--07b
------7205--4fbe93--e35--3539a79
-------------f00a5-2175------d81
---------f4e4cc18-6b7-9989e21033
------------47b28d1ae0-8-161e0c6
-------------------6de678f--a6e8
-----------------------b--e353f8
-------6eb-8--9--78391f-a3-1-3d0
-----------------eb165---5a5-0b0
---------------------9f7-9--c8e3
---------------09780---a37-----a
-------723cd51eae27-c82--78----9
-----------a48aba537182----160c1
--------0e5e1ab736-------ecbd18c
----------------7ce72d03e1-d03-1
--------------------ee1-9fb1e3f8
End file
----------bc4-099-80---e312--07b 10
------7205--4fbe93--e35--3539a79 6
-------------f00a5-2175------d81 13
---------f4e4cc18-6b7-9989e21033 9
------------47b28d1ae0-8-161e0c6 12
-------------------6de678f--a6e8 19
-----------------------b--e353f8 23
-------6eb-8--9--78391f-a3-1-3d0 7
-----------------eb165---5a5-0b0 17
---------------------9f7-9--c8e3 21
---------------09780---a37-----a 15
-------723cd51eae27-c82--78----9 7
-----------a48aba537182----160c1 11
--------0e5e1ab736-------ecbd18c 8
----------------7ce72d03e1-d03-1 16
--------------------ee1-9fb1e3f8 20

View Diff

1,16c1,16
< ----------bc4-099-80---e312--07b
< ------7205--4fbe93--e35--3539a79
< -------------f00a5-2175------d81
< ---------f4e4cc18-6b7-9989e21033
< ------------47b28d1ae0-8-161e0c6
< -------------------6de678f--a6e8
< -----------------------b--e353f8
< -------6eb-8--9--78391f-a3-1-3d0
< -----------------eb165---5a5-0b0
< ---------------------9f7-9--c8e3
< ---------------09780---a37-----a
< -------723cd51eae27-c82--78----9
< -----------a48aba537182----160c1
< --------0e5e1ab736-------ecbd18c
< ----------------7ce72d03e1-d03-1
< --------------------ee1-9fb1e3f8
---
> ----------bc4-099-80---e312--07b 10
> ------7205--4fbe93--e35--3539a79 6
> -------------f00a5-2175------d81 13
> ---------f4e4cc18-6b7-9989e21033 9
> ------------47b28d1ae0-8-161e0c6 12
> -------------------6de678f--a6e8 19
> -----------------------b--e353f8 23
> -------6eb-8--9--78391f-a3-1-3d0 7
> -----------------eb165---5a5-0b0 17
> ---------------------9f7-9--c8e3 21
> ---------------09780---a37-----a 15
> -------723cd51eae27-c82--78----9 7
> -----------a48aba537182----160c1 11
> --------0e5e1ab736-------ecbd18c 8
> ----------------7ce72d03e1-d03-1 16
> --------------------ee1-9fb1e3f8 20

Solutions by @insomnight:

Unlock 8 remaining solutions by signing in and submitting your own entry
Created by: @maharba6

14 active golfers, 47 entries

Solutions by @insomnight:
23
#3 - got_windy / @insomnight

10/21/2024 at 01:48AM

24
#>5 - got_windy / @insomnight

10/21/2024 at 01:35AM

25
#>7 - got_windy / @insomnight

10/21/2024 at 01:31AM

27
#>10 - got_windy / @insomnight

10/21/2024 at 01:30AM

30
#>11 - got_windy / @insomnight

10/21/2024 at 12:48AM

36
#>12 - got_windy / @insomnight

10/21/2024 at 12:40AM

60
#>14 - got_windy / @insomnight

10/21/2024 at 12:12AM

65
#>14 - got_windy / @insomnight

10/18/2024 at 12:16AM