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

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

348 active golfers, 1621 entries

Solutions by @Nolimimer:
24
#37 - FirstModus / @Nolimimer

04/08/2023 at 11:27AM

25
#>94 - FirstModus / @Nolimimer

04/08/2023 at 11:26AM

27
#>156 - FirstModus / @Nolimimer

04/08/2023 at 11:23AM

28
#>171 - FirstModus / @Nolimimer

04/08/2023 at 11:21AM

29
#>182 - FirstModus / @Nolimimer

04/08/2023 at 11:20AM

30
#>196 - FirstModus / @Nolimimer

04/08/2023 at 11:19AM

33
#>212 - FirstModus / @Nolimimer

04/08/2023 at 11:18AM

34
#>217 - FirstModus / @Nolimimer

04/08/2023 at 11:15AM

35
#>225 - FirstModus / @Nolimimer

04/08/2023 at 11:06AM

36
#>238 - FirstModus / @Nolimimer

04/08/2023 at 09:45AM

37
#>247 - FirstModus / @Nolimimer

04/08/2023 at 09:43AM

44
#>297 - FirstModus / @Nolimimer

04/08/2023 at 09:42AM

58
#>326 - FirstModus / @Nolimimer

04/08/2023 at 09:32AM

63
#>330 - FirstModus / @Nolimimer

04/08/2023 at 09:30AM

84
#>337 - FirstModus / @Nolimimer

04/08/2023 at 09:27AM

91
#>339 - FirstModus / @Nolimimer

04/08/2023 at 09:18AM