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

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

61 active golfers, 273 entries

Solutions by @iluvfugu:
20
#13 - Flowepmed S. Sirch / @iluvfugu

01/17/2020 at 07:22AM

22
#>30 - Flowepmed S. Sirch / @iluvfugu

01/17/2020 at 07:21AM

23
#>33 - Flowepmed S. Sirch / @iluvfugu

01/17/2020 at 06:28AM

26
#>36 - Flowepmed S. Sirch / @iluvfugu

01/17/2020 at 06:26AM

27
#>39 - Flowepmed S. Sirch / @iluvfugu

01/17/2020 at 06:22AM

30
#>48 - Flowepmed S. Sirch / @iluvfugu

01/17/2020 at 05:53AM

31
#>51 - Flowepmed S. Sirch / @iluvfugu

01/17/2020 at 05:53AM

32
#>53 - Flowepmed S. Sirch / @iluvfugu

01/17/2020 at 05:51AM

33
#>54 - Flowepmed S. Sirch / @iluvfugu

01/17/2020 at 05:47AM

37
#>58 - Flowepmed S. Sirch / @iluvfugu

01/17/2020 at 05:43AM