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 @PeppaPi95550250:

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

155 active golfers, 453 entries

Solutions by @PeppaPi95550250:
19
#87 - Peppa Pig / @PeppaPi95550250

05/07/2024 at 09:13AM

20
#>106 - Peppa Pig / @PeppaPi95550250

05/07/2024 at 09:12AM

21
#>115 - Peppa Pig / @PeppaPi95550250

05/07/2024 at 09:12AM

22
#>120 - Peppa Pig / @PeppaPi95550250

05/07/2024 at 09:11AM

23
#>133 - Peppa Pig / @PeppaPi95550250

05/07/2024 at 09:11AM

24
#>140 - Peppa Pig / @PeppaPi95550250

05/07/2024 at 09:10AM

29
#>151 - Peppa Pig / @PeppaPi95550250

05/07/2024 at 09:08AM

40
#>155 - Peppa Pig / @PeppaPi95550250

05/07/2024 at 09:08AM