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

64 active golfers, 289 entries

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

01/17/2020 at 07:22AM

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

01/17/2020 at 07:21AM

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

01/17/2020 at 06:28AM

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

01/17/2020 at 06:26AM

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

01/17/2020 at 06:22AM

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

01/17/2020 at 05:53AM

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

01/17/2020 at 05:53AM

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

01/17/2020 at 05:51AM

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

01/17/2020 at 05:47AM

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

01/17/2020 at 05:43AM