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

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

348 active golfers, 1621 entries

Solutions by @HaskellElephant:
24
#17 - Eivind Jahren / @HaskellElephant

09/11/2022 at 06:52PM

25
#>76 - Eivind Jahren / @HaskellElephant

09/11/2022 at 06:50PM

27
#>130 - Eivind Jahren / @HaskellElephant

09/11/2022 at 06:48PM

29
#>176 - Eivind Jahren / @HaskellElephant

09/11/2022 at 06:47PM

30
#>187 - Eivind Jahren / @HaskellElephant

09/11/2022 at 06:45PM

33
#>209 - Eivind Jahren / @HaskellElephant

09/11/2022 at 06:44PM

35
#>223 - Eivind Jahren / @HaskellElephant

09/11/2022 at 06:38PM

35
#>223 - Eivind Jahren / @HaskellElephant

09/11/2022 at 06:41PM

38
#>253 - Eivind Jahren / @HaskellElephant

09/11/2022 at 06:36PM

54
#>321 - Eivind Jahren / @HaskellElephant

09/11/2022 at 06:30PM