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

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

63 active golfers, 287 entries

Solutions by @fishermryn:
20
#16 - 于吉星 / @fishermryn

05/28/2020 at 10:13AM

21
#>26 - 于吉星 / @fishermryn

05/28/2020 at 10:12AM

22
#>33 - 于吉星 / @fishermryn

05/28/2020 at 10:08AM

23
#>35 - 于吉星 / @fishermryn

05/28/2020 at 10:07AM

24
#>36 - 于吉星 / @fishermryn

05/28/2020 at 10:06AM

25
#>37 - 于吉星 / @fishermryn

05/28/2020 at 10:05AM

26
#>39 - 于吉星 / @fishermryn

05/28/2020 at 10:04AM

27
#>41 - 于吉星 / @fishermryn

05/28/2020 at 10:03AM

28
#>44 - 于吉星 / @fishermryn

05/28/2020 at 10:03AM

30
#>50 - 于吉星 / @fishermryn

05/28/2020 at 10:02AM