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 5dd7ed687a0c210006a6820f

Refactor typescript arrow function type

Make arrow function type less verbose and easier to read

Start file
export const playground: (
 
object?: Partial<PlaygroundSection>,
) => PlaygroundSection = config =>
  baseSection
({
    type
: SectionType.Playground,
   
...config,
 
});
End file
export const playground = (
  config
?: Partial<PlaygroundSection>,
): PlaygroundSection =>
  baseSection
({
    type
: SectionType.Playground,
   
...config,
 
});

View Diff

1,3c1,3
< export const playground: (
<   object?: Partial<PlaygroundSection>,
< ) => PlaygroundSection = config =>
---
> export const playground = (
>   config?: Partial<PlaygroundSection>,
> ): PlaygroundSection =>

Solutions by @kmbmjn:

Unlock 10 remaining solutions by signing in and submitting your own entry
Created by: @argshook

71 active golfers, 323 entries

Solutions by @kmbmjn:
20
#21 - 김범준 / @kmbmjn

02/17/2021 at 05:00AM

21
#>31 - 김범준 / @kmbmjn

02/17/2021 at 05:00AM

22
#>39 - 김범준 / @kmbmjn

02/17/2021 at 04:59AM

23
#>42 - 김범준 / @kmbmjn

02/17/2021 at 04:59AM

25
#>43 - 김범준 / @kmbmjn

02/17/2021 at 04:58AM

26
#>46 - 김범준 / @kmbmjn

02/17/2021 at 04:56AM

26
#>46 - 김범준 / @kmbmjn

02/17/2021 at 04:57AM

27
#>49 - 김범준 / @kmbmjn

02/17/2021 at 04:55AM

28
#>52 - 김범준 / @kmbmjn

02/17/2021 at 04:54AM

31
#>61 - 김범준 / @kmbmjn

02/17/2021 at 02:26AM