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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 26 remaining solutions by signing in and submitting your own entry
#27 Andrei Popescu / @AndreiTheory - Score: 37 - 12/09/19 @ 20:31
f:xi =<Esc>jF?hciwconfig<Esc>jF>ciw<BS>:<Esc>f=d2wZZ

0 comments


Created by: @argshook

27 active golfers, 106 entries

Leaderboard (lowest score wins):
20
#1 - Smylers / @Smylers2

11/25/2019 at 11:02AM

20
#2 - Saki Gw / @Sakigw

11/25/2019 at 11:14AM

20
#3 - John Braxler / @braxler

11/25/2019 at 04:08PM

20
#4 - Matt Aschmann / @ma7hatter

11/25/2019 at 06:39PM

20
#5 - Eviber / @youvaaaaa

11/27/2019 at 10:25AM

20
#6 - Marc Päpper / @mpaepper

11/27/2019 at 09:21PM

20
#7 - Hector Ricardo / @Hector_Ricardo3

11/29/2019 at 04:13AM

20
#8 - Bruno Cunha / @bruiserwins

11/29/2019 at 11:45PM

20
#9 - vimgolfer / @vimgolfer7

12/01/2019 at 02:51AM

20
#10 - Roger Bongers / @RogerBongers

12/01/2019 at 03:11AM

20
#11 - Pierre Balayé / @PierreBalaye

12/07/2019 at 02:31PM

22
#12 - Jon Krause / @jkrause314

11/23/2019 at 04:40PM

22
#13 - Roger Stoltz / @rogsto1

11/24/2019 at 10:24PM

22
#14 - Tinko Minko / @tandikula

11/26/2019 at 05:28PM

23
#15 - Alexander L. / @Lexol4s

11/28/2019 at 07:07PM

27
#16 - Zachary Neubert / @Mr_Saturn16347

11/22/2019 at 10:14PM

28
#17 - Arijus / @argshook

11/22/2019 at 02:19PM

28
#18 - Mike Harris / @MikeMJHarris

11/22/2019 at 03:26PM

29
#19 - Joren Van Hee / @jorenvanhee

11/22/2019 at 02:37PM

29
#20 - Goshine / @AaronGoshine

11/22/2019 at 04:53PM

29
#21 - Rishabh Dwivedi / @Rishabh45312910

11/23/2019 at 02:36PM

29
#22 - shota_ogswr / @shota_ogasawara

11/24/2019 at 01:10PM

29
#23 - Bida Wa / @bida_wa

11/28/2019 at 09:31PM

31
#24 - Jangsea Park / @jangsea

11/28/2019 at 08:14PM

32
#25 - FaeFeyFa / @fae_fey

11/29/2019 at 11:53PM

32
#26 - Nicolas Pagny / @NicolasPagny

12/02/2019 at 03:19PM

37
#27 - Andrei Popescu / @AndreiTheory

12/09/2019 at 08:31PM