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 58 remaining solutions by signing in and submitting your own entry
#59 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

59 active golfers, 271 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 / @bruncun

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

20
#12 - sooqua / @sooqua

12/18/2019 at 01:26PM

20
#13 - Flowepmed S. Sirch / @iluvfugu

01/17/2020 at 07:22AM

20
#14 - howanto / @ho_wan_

02/24/2020 at 11:53PM

20
#15 - Jonáš Šerých / @serycjon

05/13/2020 at 08:23AM

20
#16 - 于吉星 / @fishermryn

05/28/2020 at 10:13AM

20
#17 - hepebexè / @hepebexe

01/08/2021 at 09:38PM

20
#18 - A A A / @37fatos

01/21/2021 at 12:57AM

20
#19 - Jung Yeon Park / @park_jungy

01/27/2021 at 09:27PM

20
#20 - Jianfeng / @Jianfen22425058

02/08/2021 at 07:30AM

20
#21 - 김범준 / @kmbmjn

02/17/2021 at 05:00AM

20
#22 - pikjes / @pikjes2

03/21/2021 at 03:38PM

21
#23 - BnnGolfer / @BnnGolfer

03/20/2020 at 04:26PM

21
#24 - Moatvald / @moatvald

05/20/2020 at 11:50AM

21
#25 - chocolate / @chocola81394123

11/29/2020 at 10:28AM

22
#26 - Jon Krause / @jkrause314

11/23/2019 at 04:40PM

22
#27 - Roger Stoltz / @rogsto1

11/24/2019 at 10:24PM

22
#28 - Tinko Minko / @tandikula

11/26/2019 at 05:28PM

22
#29 - James Casey / @hanavi

12/21/2019 at 05:29AM

22
#30 - garry quested / @GQuested

01/15/2020 at 10:04AM