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

68 active golfers, 302 entries

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

01/17/2020 at 07:22AM

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

01/17/2020 at 07:21AM

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

01/17/2020 at 06:28AM

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

01/17/2020 at 06:26AM

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

01/17/2020 at 06:22AM

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

01/17/2020 at 05:53AM

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

01/17/2020 at 05:53AM

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

01/17/2020 at 05:51AM

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

01/17/2020 at 05:47AM

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

01/17/2020 at 05:43AM