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

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

61 active golfers, 273 entries

Solutions by @serycjon:
20
#15 - Jonáš Šerých / @serycjon

05/13/2020 at 08:23AM

21
#>23 - Jonáš Šerých / @serycjon

05/13/2020 at 08:21AM

22
#>31 - Jonáš Šerých / @serycjon

05/13/2020 at 08:20AM

23
#>33 - Jonáš Šerých / @serycjon

05/13/2020 at 08:19AM

23
#>33 - Jonáš Šerých / @serycjon

05/13/2020 at 08:20AM

25
#>35 - Jonáš Šerých / @serycjon

05/13/2020 at 08:16AM

25
#>35 - Jonáš Šerých / @serycjon

05/13/2020 at 08:17AM

26
#>37 - Jonáš Šerých / @serycjon

05/13/2020 at 08:14AM

26
#>37 - Jonáš Šerých / @serycjon

05/13/2020 at 08:15AM

27
#>39 - Jonáš Šerých / @serycjon

05/13/2020 at 08:13AM

31
#>51 - Jonáš Šerých / @serycjon

05/13/2020 at 08:09AM

31
#>51 - Jonáš Šerých / @serycjon

05/13/2020 at 08:09AM

33
#>54 - Jonáš Šerých / @serycjon

05/13/2020 at 08:06AM