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 5f23f29e1e8861000c3105c5

Python: Def to Lambda

LAMBDA!!!

Start file
def f(x): return x ** 2
End file
f = lambda x: x ** 2

View Diff

1c1
< def f(x): return x ** 2
---
> f = lambda x: x ** 2

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 89 remaining solutions by signing in and submitting your own entry
#90 Tony Buranzon / @therealTbunz - Score: 32 - 03/19/21 @ 06:29
dtfli =<Esc>llctxlambda x: <Esc>lldfx<Esc>ZZ

0 comments


Created by: @_rustemb

90 active golfers, 243 entries

Leaderboard (lowest score wins):
20
#61 - Borna Sadeghi / @borna_sadeghi

03/19/2021 at 07:23PM

20
#62 - warwickrulez / @warwickrulez

04/04/2021 at 06:07PM

20
#63 - tarsiec / @tarsiec

07/12/2021 at 10:59AM

20
#64 - mevmev / @mevmev8

09/09/2021 at 01:49PM

20
#65 - vimbroesel / @vimbroesel

01/23/2022 at 12:08PM

21
#66 - Martin Bielik / @mabielik

08/06/2020 at 09:26PM

21
#67 - Zach Kirby / @zkirby2020

08/20/2020 at 05:38AM

21
#68 - Pepe / @PedroVassena

09/08/2020 at 07:50AM

21
#69 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 02:25PM

21
#70 - Captain Proton / @CaptainProton5

09/03/2021 at 09:53PM

21
#71 - chaotic / @laersn

11/04/2021 at 10:52AM

22
#72 - Martin Kauppinen / @MartinKauppinen

08/15/2020 at 06:23PM

22
#73 - Selvaganapathy P / @canabady

02/20/2021 at 09:49AM

23
#74 - abhijeet patil / @abhijeetptl5

09/04/2020 at 09:37AM

23
#75 - kafang plays vimgolf / @KafangV

12/18/2020 at 08:29PM

23
#76 - tom / @marlow_th

05/07/2021 at 04:54AM

23
#77 - m397 / @m39752809546

05/31/2021 at 07:40PM

23
#78 - Delon / @delonleonard

09/14/2021 at 12:35AM

23
#79 - Rory Smith / @alan0buchanan

09/15/2021 at 10:49PM

23
#80 - Swaraj Dash / @swarajdash_

11/14/2021 at 11:23PM

23
#81 - mattp (part of the 💉💉💉 club) / @mattpep

01/20/2022 at 02:41PM

24
#82 - Rustem B. / @_rustemb

07/31/2020 at 10:31AM

24
#83 - バイロン / @Genius_Byron

06/06/2021 at 09:16PM

24
#84 - François / @mortyZZ

08/01/2021 at 07:53PM

25
#85 - Matthias / @Matthia78044730

07/31/2020 at 07:51PM

25
#86 - Christ / @Christ46234422

09/22/2020 at 02:02PM

25
#87 - José Medrano / @happylilmexican

12/08/2021 at 03:20AM

27
#88 - Theo Sarrazin / @tshaero

08/18/2020 at 06:50PM

31
#89 - ever0de / @ever0de

06/23/2021 at 04:37AM

32
#90 - Tony Buranzon / @therealTbunz

03/19/2021 at 06:29AM