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

352 active golfers, 1635 entries

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

02/25/2024 at 08:27AM

26
#>112 - EtherFan / @ether_fan

02/25/2024 at 08:26AM

27
#>168 - EtherFan / @ether_fan

02/25/2024 at 08:25AM

30
#>204 - EtherFan / @ether_fan

02/25/2024 at 08:23AM

33
#>215 - EtherFan / @ether_fan

02/25/2024 at 08:21AM

34
#>221 - EtherFan / @ether_fan

02/25/2024 at 08:20AM

35
#>229 - EtherFan / @ether_fan

02/25/2024 at 08:20AM

36
#>243 - EtherFan / @ether_fan

02/25/2024 at 08:19AM

37
#>251 - EtherFan / @ether_fan

02/25/2024 at 08:18AM

38
#>263 - EtherFan / @ether_fan

02/25/2024 at 08:18AM

39
#>269 - EtherFan / @ether_fan

02/25/2024 at 08:18AM

40
#>275 - EtherFan / @ether_fan

02/25/2024 at 08:17AM

41
#>282 - EtherFan / @ether_fan

02/25/2024 at 08:17AM

42
#>291 - EtherFan / @ether_fan

02/25/2024 at 08:16AM

43
#>297 - EtherFan / @ether_fan

02/25/2024 at 08:16AM

44
#>301 - EtherFan / @ether_fan

02/25/2024 at 08:15AM

45
#>305 - EtherFan / @ether_fan

02/25/2024 at 08:15AM

46
#>308 - EtherFan / @ether_fan

02/25/2024 at 08:14AM