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

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

68 active golfers, 302 entries

Solutions by @Hector_Ricardo3:
20
#7 - Hector Ricardo / @Hector_Ricardo3

11/29/2019 at 04:13AM

20
#>7 - Hector Ricardo / @Hector_Ricardo3

11/29/2019 at 04:15AM

21
#>25 - Hector Ricardo / @Hector_Ricardo3

11/29/2019 at 04:08AM

22
#>33 - Hector Ricardo / @Hector_Ricardo3

11/29/2019 at 04:03AM

22
#>33 - Hector Ricardo / @Hector_Ricardo3

11/29/2019 at 04:06AM

23
#>37 - Hector Ricardo / @Hector_Ricardo3

11/29/2019 at 03:57AM

26
#>41 - Hector Ricardo / @Hector_Ricardo3

11/29/2019 at 03:55AM

28
#>49 - Hector Ricardo / @Hector_Ricardo3

11/29/2019 at 03:52AM

29
#>55 - Hector Ricardo / @Hector_Ricardo3

11/29/2019 at 03:48AM

29
#>55 - Hector Ricardo / @Hector_Ricardo3

11/29/2019 at 03:50AM

30
#>55 - Hector Ricardo / @Hector_Ricardo3

11/29/2019 at 03:29AM

34
#>61 - Hector Ricardo / @Hector_Ricardo3

11/29/2019 at 12:44AM

34
#>61 - Hector Ricardo / @Hector_Ricardo3

11/29/2019 at 12:46AM

35
#>62 - Hector Ricardo / @Hector_Ricardo3

11/29/2019 at 12:38AM

45
#>68 - Hector Ricardo / @Hector_Ricardo3

11/29/2019 at 12:35AM