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 9v0062d0773d000000000225

Reformat symbols in list

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

Start file
inputs = [ 1 2 3 4 5 ]
outputs = [ 1 2 3 4 5 ]
End file
inputs = [ i1 i2 i3 i4 i5 ]
outputs = [ (o1,i1) (o2,i2) (o3,i3) (o4,i4) (o5,i5) ]

View Diff

1,2c1,2
< inputs = [ 1 2 3 4 5 ]
< outputs = [ 1 2 3 4 5 ]
---
> inputs = [ i1 i2 i3 i4 i5 ]
> outputs = [ (o1,i1) (o2,i2) (o3,i3) (o4,i4) (o5,i5) ]

Solutions by @ddankcity:

Unlock 14 remaining solutions by signing in and submitting your own entry
Created by: @selfuryon

348 active golfers, 1621 entries

Solutions by @ddankcity:
25
#85 - Dank City / @ddankcity

12/01/2022 at 09:45PM

27
#>143 - Dank City / @ddankcity

12/01/2022 at 09:43PM

28
#>170 - Dank City / @ddankcity

12/01/2022 at 09:42PM

29
#>178 - Dank City / @ddankcity

12/01/2022 at 09:40PM

30
#>194 - Dank City / @ddankcity

12/01/2022 at 09:38PM

33
#>212 - Dank City / @ddankcity

12/01/2022 at 09:36PM

36
#>235 - Dank City / @ddankcity

12/01/2022 at 09:35PM

37
#>244 - Dank City / @ddankcity

12/01/2022 at 09:33PM

42
#>282 - Dank City / @ddankcity

12/01/2022 at 09:28PM

43
#>291 - Dank City / @ddankcity

12/01/2022 at 09:27PM

44
#>296 - Dank City / @ddankcity

12/01/2022 at 09:25PM

45
#>300 - Dank City / @ddankcity

12/01/2022 at 09:23PM

48
#>308 - Dank City / @ddankcity

12/01/2022 at 09:22PM

101
#>340 - Dank City / @ddankcity

12/01/2022 at 09:15PM