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

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

68 active golfers, 302 entries

Solutions by @PierreBalaye:
20
#11 - Pierre Balayé / @PierreBalaye

12/07/2019 at 02:31PM

22
#>33 - Pierre Balayé / @PierreBalaye

12/07/2019 at 02:31PM

23
#>37 - Pierre Balayé / @PierreBalaye

12/07/2019 at 02:30PM

27
#>44 - Pierre Balayé / @PierreBalaye

12/07/2019 at 02:28PM

28
#>49 - Pierre Balayé / @PierreBalaye

12/07/2019 at 02:27PM

29
#>55 - Pierre Balayé / @PierreBalaye

12/07/2019 at 02:25PM

31
#>56 - Pierre Balayé / @PierreBalaye

12/07/2019 at 02:23PM

32
#>60 - Pierre Balayé / @PierreBalaye

12/07/2019 at 02:20PM