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

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

61 active golfers, 273 entries

Solutions by @Smylers2:
20
#1 - Smylers / @Smylers2

11/25/2019 at 11:02AM

21
#>22 - Smylers / @Smylers2

11/25/2019 at 11:01AM

22
#>27 - Smylers / @Smylers2

11/25/2019 at 10:29AM

24
#>34 - Smylers / @Smylers2

11/25/2019 at 10:21AM

24
#>34 - Smylers / @Smylers2

11/25/2019 at 10:26AM