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 9v0062396e6f00000000021a

Generate a very basic Python constructor (fixed)

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

Start file
def __init__(self, x, y, z, rotation, color, bounciness, walking_speed, running_speed, health, defense, age, type1, type2):
End file
def __init__(self, x, y, z, rotation, color, bounciness, walking_speed, running_speed, health, defense, age, type1, type2):
    self.x = x
    self.y = y
    self.z = z
    self.rotation = rotation
    self.color = color
    self.bounciness = bounciness
    self.walking_speed = walking_speed
    self.running_speed = running_speed
    self.health = health
    self.defense = defense
    self.age = age
    self.type1 = type1
    self.type2 = type2

View Diff

1a2,14
>     self.x = x
>     self.y = y
>     self.z = z
>     self.rotation = rotation
>     self.color = color
>     self.bounciness = bounciness
>     self.walking_speed = walking_speed
>     self.running_speed = running_speed
>     self.health = health
>     self.defense = defense
>     self.age = age
>     self.type1 = type1
>     self.type2 = type2

Solutions by @andrewalkernet:

Unlock 17 remaining solutions by signing in and submitting your own entry
Created by: @philipp_schilk

259 active golfers, 1228 entries

Solutions by @andrewalkernet:
29
#40 - andrewalker@mastodon.green / @andrewalkernet

11/08/2022 at 02:18PM

30
#>69 - andrewalker@mastodon.green / @andrewalkernet

11/08/2022 at 02:16PM

33
#>76 - andrewalker@mastodon.green / @andrewalkernet

11/08/2022 at 02:01PM

35
#>81 - andrewalker@mastodon.green / @andrewalkernet

11/08/2022 at 01:59PM

37
#>95 - andrewalker@mastodon.green / @andrewalkernet

11/08/2022 at 01:51PM

38
#>97 - andrewalker@mastodon.green / @andrewalkernet

11/08/2022 at 01:48PM

39
#>103 - andrewalker@mastodon.green / @andrewalkernet

11/08/2022 at 01:35PM

40
#>106 - andrewalker@mastodon.green / @andrewalkernet

11/08/2022 at 01:31PM

41
#>112 - andrewalker@mastodon.green / @andrewalkernet

11/08/2022 at 01:27PM

44
#>140 - andrewalker@mastodon.green / @andrewalkernet

11/08/2022 at 01:21PM

45
#>148 - andrewalker@mastodon.green / @andrewalkernet

11/08/2022 at 01:16PM

47
#>155 - andrewalker@mastodon.green / @andrewalkernet

11/08/2022 at 01:11PM

52
#>188 - andrewalker@mastodon.green / @andrewalkernet

11/08/2022 at 01:04PM

54
#>199 - andrewalker@mastodon.green / @andrewalkernet

11/08/2022 at 12:56PM

57
#>209 - andrewalker@mastodon.green / @andrewalkernet

11/08/2022 at 12:50PM

72
#>235 - andrewalker@mastodon.green / @andrewalkernet

11/08/2022 at 12:48PM

107
#>244 - andrewalker@mastodon.green / @andrewalkernet

11/08/2022 at 12:42PM