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 101 remaining solutions by signing in and submitting your own entry
#102 铃舟 / @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

102 active golfers, 434 entries

Leaderboard (lowest score wins):
49
#61 - Lyren Brown / @LyrenBrown

05/01/2022 at 07:46AM

49
#62 - JustHereForTheVim / @Here4Vimgolf

05/10/2022 at 06:40PM

49
#63 - ccorvi / @ccorvi1

05/16/2022 at 03:46PM

49
#64 - Adam Balawender / @a_balawender

05/18/2022 at 10:28PM

50
#65 - Sithe / @SitheTie

05/05/2022 at 06:50PM

50
#66 - sdfghjk / @sdfghjk88424595

05/19/2022 at 11:28PM

52
#67 - free ye / @ye1083369199

04/17/2022 at 11:51AM

52
#68 - Adam Tajti / @Devilirium

04/23/2022 at 07:15PM

52
#69 - herbage / @herbage2

04/30/2022 at 04:16AM

53
#70 - sean.yang / @seanyangc

03/22/2022 at 07:59AM

53
#71 - Nougatine Naja / @NougatineNaja

03/25/2022 at 01:14PM

53
#72 - Andreas Aumann / @andreasaumann

03/27/2022 at 03:08PM

53
#73 - Daniel Qu / @danielq9871

05/20/2022 at 06:59PM

54
#74 - two failing clusters in a trench coat / @0x12b

04/05/2022 at 08:54PM

54
#75 - タケ / @Take3832

04/23/2022 at 03:07PM

55
#76 - Joe Reddington / @JoeReddington

03/31/2022 at 10:20AM

55
#77 - ff df / @ffdf93207177

04/18/2022 at 01:35AM

55
#78 - David Tchanturia / @daviti85142401

05/14/2022 at 03:37PM

56
#79 - Cpt Mitten / @CptMitten

03/31/2022 at 02:32PM

56
#80 - Curtis Ault / @Curtis_Ault

04/01/2022 at 08:35PM

59
#81 - Zach Calhoun / @ZachDCalhoun

03/27/2022 at 11:24PM

60
#82 - salchint / @salchint

05/04/2022 at 10:45PM

61
#83 - Raimondas Kazlauskas / @RhymondK

03/29/2022 at 11:15AM

61
#84 - August Sunday / @aoa_sundays

04/13/2022 at 03:11AM

62
#85 - anonymouse / @anonymo65837183

04/02/2022 at 09:14PM

62
#86 - Benjamin McCown / @beanmccown

04/06/2022 at 10:19PM

62
#87 - tuck / @19emtuck

04/13/2022 at 09:55AM

62
#88 - Ragtime / @TheRagtimeBlues

05/21/2022 at 05:06AM

64
#89 - すちぃ / @champemunasong

04/09/2022 at 03:24AM

65
#90 - Enrique Santana / @esantanaya

04/24/2022 at 01:09AM