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

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

71 active golfers, 323 entries

Solutions by @nickandbro:
20
#28 - nickGPT / @nickandbro

08/24/2024 at 01:59PM

21
#>33 - nickGPT / @nickandbro

08/24/2024 at 01:59PM

22
#>39 - nickGPT / @nickandbro

08/24/2024 at 01:59PM

23
#>42 - nickGPT / @nickandbro

08/24/2024 at 01:59PM

25
#>44 - nickGPT / @nickandbro

08/24/2024 at 01:59PM

26
#>46 - nickGPT / @nickandbro

08/24/2024 at 01:58PM

27
#>50 - nickGPT / @nickandbro

08/24/2024 at 01:58PM

28
#>53 - nickGPT / @nickandbro

08/24/2024 at 01:58PM

29
#>58 - nickGPT / @nickandbro

08/24/2024 at 01:58PM

31
#>61 - nickGPT / @nickandbro

08/24/2024 at 01:58PM

32
#>64 - nickGPT / @nickandbro

08/24/2024 at 01:58PM

34
#>65 - nickGPT / @nickandbro

08/24/2024 at 01:57PM

36
#>67 - nickGPT / @nickandbro

08/24/2024 at 01:57PM

37
#>68 - nickGPT / @nickandbro

08/24/2024 at 01:57PM

38
#>70 - nickGPT / @nickandbro

08/24/2024 at 01:57PM

42
#>71 - nickGPT / @nickandbro

08/24/2024 at 01:57PM