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

355 active golfers, 1649 entries

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

02/25/2024 at 08:27AM

26
#>113 - EtherFan / @ether_fan

02/25/2024 at 08:26AM

27
#>169 - EtherFan / @ether_fan

02/25/2024 at 08:25AM

30
#>206 - EtherFan / @ether_fan

02/25/2024 at 08:23AM

33
#>217 - EtherFan / @ether_fan

02/25/2024 at 08:21AM

34
#>223 - EtherFan / @ether_fan

02/25/2024 at 08:20AM

35
#>231 - EtherFan / @ether_fan

02/25/2024 at 08:20AM

36
#>245 - EtherFan / @ether_fan

02/25/2024 at 08:19AM

37
#>253 - EtherFan / @ether_fan

02/25/2024 at 08:18AM

38
#>265 - EtherFan / @ether_fan

02/25/2024 at 08:18AM

39
#>271 - EtherFan / @ether_fan

02/25/2024 at 08:18AM

40
#>277 - EtherFan / @ether_fan

02/25/2024 at 08:17AM

41
#>284 - EtherFan / @ether_fan

02/25/2024 at 08:17AM

42
#>293 - EtherFan / @ether_fan

02/25/2024 at 08:16AM

43
#>299 - EtherFan / @ether_fan

02/25/2024 at 08:16AM

44
#>303 - EtherFan / @ether_fan

02/25/2024 at 08:15AM

45
#>307 - EtherFan / @ether_fan

02/25/2024 at 08:15AM

46
#>310 - EtherFan / @ether_fan

02/25/2024 at 08:14AM