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 @ether_fan:

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

348 active golfers, 1621 entries

Solutions by @ether_fan:
25
#103 - EtherFan / @ether_fan

02/25/2024 at 08:27AM

26
#>111 - EtherFan / @ether_fan

02/25/2024 at 08:26AM

27
#>167 - EtherFan / @ether_fan

02/25/2024 at 08:25AM

30
#>202 - EtherFan / @ether_fan

02/25/2024 at 08:23AM

33
#>213 - EtherFan / @ether_fan

02/25/2024 at 08:21AM

34
#>219 - EtherFan / @ether_fan

02/25/2024 at 08:20AM

35
#>227 - EtherFan / @ether_fan

02/25/2024 at 08:20AM

36
#>241 - EtherFan / @ether_fan

02/25/2024 at 08:19AM

37
#>249 - EtherFan / @ether_fan

02/25/2024 at 08:18AM

38
#>260 - EtherFan / @ether_fan

02/25/2024 at 08:18AM

39
#>266 - EtherFan / @ether_fan

02/25/2024 at 08:18AM

40
#>272 - EtherFan / @ether_fan

02/25/2024 at 08:17AM

41
#>279 - EtherFan / @ether_fan

02/25/2024 at 08:17AM

42
#>288 - EtherFan / @ether_fan

02/25/2024 at 08:16AM

43
#>294 - EtherFan / @ether_fan

02/25/2024 at 08:16AM

44
#>298 - EtherFan / @ether_fan

02/25/2024 at 08:15AM

45
#>302 - EtherFan / @ether_fan

02/25/2024 at 08:15AM

46
#>305 - EtherFan / @ether_fan

02/25/2024 at 08:14AM