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

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

301 active golfers, 1215 entries

Solutions by @br_bookbinder:
19
#17 - br_bookbinder / @br_bookbinder

04/28/2021 at 09:45PM

20
#>92 - br_bookbinder / @br_bookbinder

04/28/2021 at 09:41PM

20
#>92 - br_bookbinder / @br_bookbinder

04/28/2021 at 09:42PM

21
#>126 - br_bookbinder / @br_bookbinder

04/28/2021 at 09:39PM

23
#>133 - br_bookbinder / @br_bookbinder

04/28/2021 at 09:38PM

25
#>159 - br_bookbinder / @br_bookbinder

04/28/2021 at 09:30PM

30
#>198 - br_bookbinder / @br_bookbinder

04/28/2021 at 09:25PM

31
#>209 - br_bookbinder / @br_bookbinder

04/28/2021 at 09:17PM

31
#>209 - br_bookbinder / @br_bookbinder

04/28/2021 at 09:22PM

32
#>220 - br_bookbinder / @br_bookbinder

04/28/2021 at 09:08PM

33
#>244 - br_bookbinder / @br_bookbinder

04/28/2021 at 09:05PM

34
#>249 - br_bookbinder / @br_bookbinder

04/28/2021 at 05:13PM

38
#>263 - br_bookbinder / @br_bookbinder

04/28/2021 at 05:12PM

39
#>267 - br_bookbinder / @br_bookbinder

04/28/2021 at 04:51PM

41
#>271 - br_bookbinder / @br_bookbinder

04/28/2021 at 04:32PM

43
#>273 - br_bookbinder / @br_bookbinder

04/28/2021 at 09:05PM

46
#>278 - br_bookbinder / @br_bookbinder

04/28/2021 at 04:45PM

49
#>281 - br_bookbinder / @br_bookbinder

04/28/2021 at 04:25PM

51
#>283 - br_bookbinder / @br_bookbinder

04/28/2021 at 04:23PM

54
#>284 - br_bookbinder / @br_bookbinder

04/28/2021 at 04:49PM

61
#>293 - br_bookbinder / @br_bookbinder

04/28/2021 at 04:22PM

67
#>294 - br_bookbinder / @br_bookbinder

04/28/2021 at 04:29PM