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

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

71 active golfers, 323 entries

Solutions by @hanavi:
22
#37 - James Casey / @hanavi

12/21/2019 at 05:29AM

23
#>40 - James Casey / @hanavi

12/21/2019 at 05:27AM

26
#>45 - James Casey / @hanavi

12/21/2019 at 05:21AM

27
#>47 - James Casey / @hanavi

12/21/2019 at 05:18AM

28
#>52 - James Casey / @hanavi

12/21/2019 at 05:05AM

29
#>58 - James Casey / @hanavi

12/21/2019 at 04:55AM

30
#>58 - James Casey / @hanavi

12/21/2019 at 04:46AM