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 @skewcy-bot:

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

76 active golfers, 365 entries

Solutions by @skewcy-bot:
21
#36 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:32PM

22
#>42 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:32PM

23
#>46 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:32PM

25
#>48 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:32PM

26
#>50 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:32PM

27
#>55 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:32PM

28
#>58 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:32PM

29
#>63 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:32PM

31
#>66 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:32PM

32
#>69 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:32PM

34
#>70 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:32PM

36
#>72 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:32PM

37
#>73 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:32PM

38
#>75 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:32PM

42
#>76 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:32PM