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

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

300 active golfers, 1214 entries

Solutions by @painkiller_2357:
19
#75 - 유채운 / @painkiller_2357

04/13/2024 at 01:09PM

19
#>75 - 유채운 / @painkiller_2357

04/13/2024 at 01:43PM

20
#>122 - 유채운 / @painkiller_2357

04/13/2024 at 01:07PM

21
#>130 - 유채운 / @painkiller_2357

04/13/2024 at 06:27AM

21
#>130 - 유채운 / @painkiller_2357

04/13/2024 at 06:31AM

25
#>163 - 유채운 / @painkiller_2357

04/13/2024 at 06:25AM

31
#>215 - 유채운 / @painkiller_2357

04/12/2024 at 05:42PM

32
#>241 - 유채운 / @painkiller_2357

04/12/2024 at 05:35PM

41
#>271 - 유채운 / @painkiller_2357

04/12/2024 at 05:31PM

54
#>284 - 유채운 / @painkiller_2357

04/12/2024 at 05:25PM

69
#>295 - 유채운 / @painkiller_2357

04/12/2024 at 05:11PM

84
#>297 - 유채운 / @painkiller_2357

04/12/2024 at 05:10PM

104
#>297 - 유채운 / @painkiller_2357

04/12/2024 at 04:56PM