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 6013804df3308e0009368f1c

Python dataclasses

Simple challenge to extract fields from a Python class

Start file
from dataclasses import dataclass

@dataclass
class Student:
    student_id
: str
    name
: str
    age
: int
    score
: float

fields
= ""
End file
from dataclasses import dataclass

@dataclass
class Student:
    student_id
: str
    name
: str
    age
: int
    score
: float

fields
= "student_id,name,age,score"

View Diff

10c10
< fields = ""
---
> fields = "student_id,name,age,score"

Solutions by @kyo89347563:

Unlock 18 remaining solutions by signing in and submitting your own entry
Created by: @__ngtrongkha

295 active golfers, 1192 entries

Solutions by @kyo89347563:
19
#50 - ky05uk3 / @kyo89347563

03/12/2023 at 12:10PM

20
#>103 - ky05uk3 / @kyo89347563

03/12/2023 at 12:09PM

21
#>126 - ky05uk3 / @kyo89347563

03/12/2023 at 12:07PM

23
#>133 - ky05uk3 / @kyo89347563

03/12/2023 at 12:05PM

24
#>146 - ky05uk3 / @kyo89347563

03/12/2023 at 12:03PM

24
#>146 - ky05uk3 / @kyo89347563

03/12/2023 at 12:04PM

24
#>146 - ky05uk3 / @kyo89347563

03/12/2023 at 12:06PM

24
#>146 - ky05uk3 / @kyo89347563

03/12/2023 at 12:10PM

26
#>166 - ky05uk3 / @kyo89347563

03/12/2023 at 12:00PM

27
#>173 - ky05uk3 / @kyo89347563

03/12/2023 at 11:59AM

28
#>180 - ky05uk3 / @kyo89347563

03/12/2023 at 11:58AM

29
#>191 - ky05uk3 / @kyo89347563

03/12/2023 at 11:57AM

30
#>199 - ky05uk3 / @kyo89347563

03/12/2023 at 11:56AM

31
#>209 - ky05uk3 / @kyo89347563

03/12/2023 at 11:54AM

35
#>246 - ky05uk3 / @kyo89347563

03/12/2023 at 11:51AM

37
#>255 - ky05uk3 / @kyo89347563

03/12/2023 at 11:50AM

51
#>277 - ky05uk3 / @kyo89347563

03/12/2023 at 11:48AM

63
#>287 - ky05uk3 / @kyo89347563

03/12/2023 at 11:47AM