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

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

68 active golfers, 302 entries

Solutions by @BnnGolfer:
21
#26 - BnnGolfer / @BnnGolfer

03/20/2020 at 04:26PM

23
#>38 - BnnGolfer / @BnnGolfer

03/20/2020 at 04:22PM

26
#>42 - BnnGolfer / @BnnGolfer

03/20/2020 at 04:20PM

27
#>45 - BnnGolfer / @BnnGolfer

03/20/2020 at 04:19PM

30
#>55 - BnnGolfer / @BnnGolfer

03/20/2020 at 04:17PM

34
#>61 - BnnGolfer / @BnnGolfer

03/20/2020 at 04:16PM