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 by @GavinKoeng:

Unlock 14 remaining solutions by signing in and submitting your own entry
Created by: @_rustemb

158 active golfers, 474 entries

Solutions by @GavinKoeng:
19
#92 - Gavin / @GavinKoeng

01/15/2026 at 03:45PM

19
#>92 - Gavin / @GavinKoeng

01/15/2026 at 03:46PM

20
#>108 - Gavin / @GavinKoeng

01/15/2026 at 03:45PM

21
#>117 - Gavin / @GavinKoeng

01/15/2026 at 03:44PM

22
#>122 - Gavin / @GavinKoeng

01/15/2026 at 03:44PM

23
#>135 - Gavin / @GavinKoeng

01/15/2026 at 03:43PM

24
#>143 - Gavin / @GavinKoeng

01/15/2026 at 03:43PM

25
#>149 - Gavin / @GavinKoeng

01/15/2026 at 03:42PM

26
#>150 - Gavin / @GavinKoeng

01/15/2026 at 03:41PM

27
#>153 - Gavin / @GavinKoeng

01/15/2026 at 03:41PM

27
#>153 - Gavin / @GavinKoeng

01/15/2026 at 03:42PM

29
#>154 - Gavin / @GavinKoeng

01/15/2026 at 03:40PM

33
#>158 - Gavin / @GavinKoeng

01/15/2026 at 03:40PM

34
#>158 - Gavin / @GavinKoeng

01/15/2026 at 03:37PM