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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 185 remaining solutions by signing in and submitting your own entry
#186 铃舟 / @lingzhouVII - Score: 711 - 04/14/22 @ 13:45
jjjjjjjjjjjjjjjlllllllllllllllddidef __init__(self, x, y, z, rotation, color, bounciness, walking_speed, running_speed, health, defense, age, type1, type2):<CR>    self.x = x<CR>    self.y = y<CR>    self.z = z<CR>    self.rotation = rotation<CR>    self.color = color<CR>    self.bounciness = bounciness<CR>    self.walking_speed = walking_speed<CR>    self.running_speed = running_speed<CR>    self.health = health<CR>    self.defense = defense<CR>    self.age = age<CR>    self.type1 = type1<CR>    self.type2 = type2<Esc>kkkkkkkkkkk0lllllllli<BS><BS><BS><BS><Esc>jhhhhhhhh.u4xi<Tab><BS>    <Esc>jllllllllllhhhhhhhhhhhhhd00d0lllllllllllhhi<BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><CR><Esc>kxjxhhhhhjxxjxxxjkxxxjxxxxx i  <Esc>jxxxxxxxjxxxxxxxi    <Esc>jkxjixxxxxxxxx<BS><BS><BS><BS><BS><BS><BS><BS><BS><Esc>xxxxxxxxjxxxxxxi <Esc>jxxxxxxxxxjxxxxxxxxxxi    <Esc>:wq<CR>

0 comments


Created by: @TheSchilk

186 active golfers, 857 entries

Leaderboard (lowest score wins):
43
#91 - Andrew Morris / @andrew_morris

07/14/2022 at 02:58AM

43
#92 - Laughing Cavalier / @jovial_cavalier

10/26/2022 at 02:45PM

43
#93 - Michał / @Micha46184564

10/31/2022 at 08:49AM

44
#94 - Pierre-Olivier Proulx / @PierreO57066096

04/18/2022 at 01:08AM

44
#95 - José Medrano / @happylilmexican

05/04/2022 at 03:56PM

44
#96 - Lanly / @1094916227

05/09/2022 at 03:14AM

44
#97 - iwataka / @iwataka33

05/15/2022 at 02:06PM

44
#98 - Mario / @MarioWolfe

06/16/2022 at 04:54AM

44
#99 - サイシ / @tairar_314

06/24/2022 at 03:22AM

44
#100 - Andrew Liu / @AndrewL45936893

09/13/2022 at 10:03PM

44
#101 - Fergus Fettes / @FergusFettes

10/14/2022 at 08:40AM

44
#102 - Haizn Scie🔞 / @champemunasong

10/27/2022 at 05:27AM

45
#103 - FeAx / @_FeAx_

03/27/2022 at 04:36PM

45
#104 - Javier Contreras / @contranton

05/04/2022 at 06:58PM

45
#105 - Ryan Murphy / @RyanMur92693753

05/13/2022 at 12:58AM

45
#106 - Tim / @MarhjaKhazua

05/14/2022 at 09:51AM

45
#107 - Austin Willliams / @GuitarMusash616

09/21/2022 at 05:49AM

46
#108 - James Casey / @hanavi

08/18/2022 at 01:57AM

46
#109 - Desentcare / @ashuyali

08/24/2022 at 09:33PM

46
#110 - MerryElvira / @ElviraBTC

09/24/2022 at 01:16PM

47
#111 - Nicolas Kreutzer / @NigiCereal

06/10/2022 at 08:08PM

48
#112 - スティーン@ニーツ / @raxmur

04/21/2022 at 09:44AM

48
#113 - Ryan Murphy / @RyanMur03026891

05/03/2022 at 12:38PM

48
#114 - Eric Briand / @eric_briand

05/10/2022 at 02:20PM

49
#115 - pusha t daily / @rudellius

04/08/2022 at 08:42AM

49
#116 - Fredrik Peteri / @Xeduses

04/10/2022 at 01:37PM

49
#117 - Lyren Brown / @LyrenBrown

05/01/2022 at 07:46AM

49
#118 - Justin Sane / @Here4Vimgolf

05/10/2022 at 06:40PM

49
#119 - ccorvi / @ccorvi1

05/16/2022 at 03:46PM

49
#120 - Adam Balawender / @a_balawender

05/18/2022 at 10:28PM