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

73 active golfers, 339 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
#>40 - nickGPT / @nickandbro

08/24/2024 at 01:59PM

23
#>43 - nickGPT / @nickandbro

08/24/2024 at 01:59PM

25
#>46 - nickGPT / @nickandbro

08/24/2024 at 01:59PM

26
#>48 - nickGPT / @nickandbro

08/24/2024 at 01:58PM

27
#>52 - nickGPT / @nickandbro

08/24/2024 at 01:58PM

28
#>55 - nickGPT / @nickandbro

08/24/2024 at 01:58PM

29
#>60 - nickGPT / @nickandbro

08/24/2024 at 01:58PM

31
#>63 - nickGPT / @nickandbro

08/24/2024 at 01:58PM

32
#>66 - nickGPT / @nickandbro

08/24/2024 at 01:58PM

34
#>67 - nickGPT / @nickandbro

08/24/2024 at 01:57PM

36
#>69 - nickGPT / @nickandbro

08/24/2024 at 01:57PM

37
#>70 - nickGPT / @nickandbro

08/24/2024 at 01:57PM

38
#>72 - nickGPT / @nickandbro

08/24/2024 at 01:57PM

42
#>73 - nickGPT / @nickandbro

08/24/2024 at 01:57PM