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 60 remaining solutions by signing in and submitting your own entry
#61 fff / @fff51460170 - Score: 42 - 02/21/21 @ 07:14
f:a<BS> =<Esc><Down>0wdw<Down><Left>dtPi: <Esc>f=dt=<Up>0w<Left>px:<BS>0wxx:wq<CR>

0 comments


Created by: @argshook

61 active golfers, 273 entries

Leaderboard (lowest score wins):
22
#31 - floyd / @floyd10086

03/19/2020 at 10:08AM

23
#32 - Alexander L. / @Lexol4s

11/28/2019 at 07:07PM

23
#33 - Jason Neylon / @jasonneylon

12/21/2019 at 03:11PM

23
#34 - Tanzeel Kazi / @tanzeelkazi

08/24/2020 at 06:51PM

25
#35 - Jason / @roosjason

05/12/2020 at 08:19AM

26
#36 - Dan Kilman / @dan_kilman

12/19/2019 at 06:08PM

26
#37 - PotatoKing / @PotatoK72775616

03/27/2020 at 09:57PM

27
#38 - Zachary Neubert / @Mr_Saturn16347

11/22/2019 at 10:14PM

27
#39 - Bennett / @bennettbackward

12/29/2019 at 02:37AM

27
#40 - RockerZZY / @rocker_zzy

05/28/2020 at 01:22PM

28
#41 - Arijus / @argshook

11/22/2019 at 02:19PM

28
#42 - Mike Harris / @MikeMJHarris

11/22/2019 at 03:26PM

28
#43 - grsh / @girish_i_am

05/28/2021 at 07:31PM

29
#44 - Joren Van Hee / @jorenvanhee

11/22/2019 at 02:37PM

29
#45 - Goshine / @AaronGoshine

11/22/2019 at 04:53PM

29
#46 - Rishabh Dwivedi / @Rishabh45312910

11/23/2019 at 02:36PM

29
#47 - shota_ogswr / @shota_ogasawara

11/24/2019 at 01:10PM

29
#48 - Bida Wa / @bida_wa

11/28/2019 at 09:31PM

31
#49 - Jangsea Park / @jangsea

11/28/2019 at 08:14PM

31
#50 - Delon / @delonleonard

12/25/2019 at 07:34AM

31
#51 - None / @sh1chuang

01/09/2020 at 12:24PM

32
#52 - FaeFeyFa / @fae_fey

11/29/2019 at 11:53PM

32
#53 - Nicolas Pagny / @NicolasPagny

12/02/2019 at 03:19PM

32
#54 - Karol Ɓukaszewicz / @Karolukaszewicz

06/25/2020 at 11:56AM

34
#55 - Joe Farnsworth / @JoeFarnsworth

06/22/2021 at 01:23PM

36
#56 - JimmyGymglish / @JGymglish

01/02/2020 at 01:22PM

36
#57 - drGsus / @drGsus

07/30/2020 at 10:12AM

37
#58 - Andrei Popescu / @AndreiTheory

12/09/2019 at 08:31PM

38
#59 - Steve Racanovic / @steve_racanovic

01/21/2020 at 02:15AM

38
#60 - Nik C / @nikclarx

01/28/2020 at 04:28AM