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

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

126 active golfers, 378 entries

Solutions by @pankace_Frosted:
19
#61 - pankace / @pankace_Frosted

03/03/2022 at 01:36PM

20
#>85 - pankace / @pankace_Frosted

03/03/2022 at 01:36PM

21
#>95 - pankace / @pankace_Frosted

03/03/2022 at 01:35PM

22
#>100 - pankace / @pankace_Frosted

03/03/2022 at 10:18AM

23
#>109 - pankace / @pankace_Frosted

03/03/2022 at 10:11AM

23
#>109 - pankace / @pankace_Frosted

03/03/2022 at 10:14AM

24
#>114 - pankace / @pankace_Frosted

03/03/2022 at 10:09AM

27
#>121 - pankace / @pankace_Frosted

03/03/2022 at 10:03AM

28
#>122 - pankace / @pankace_Frosted

03/03/2022 at 10:01AM

28
#>122 - pankace / @pankace_Frosted

03/03/2022 at 10:13AM

30
#>122 - pankace / @pankace_Frosted

03/03/2022 at 10:08AM

33
#>126 - pankace / @pankace_Frosted

03/03/2022 at 09:51AM

35
#>126 - pankace / @pankace_Frosted

03/03/2022 at 09:47AM

35
#>126 - pankace / @pankace_Frosted

03/03/2022 at 09:53AM

36
#>126 - pankace / @pankace_Frosted

03/03/2022 at 09:58AM

40
#>126 - pankace / @pankace_Frosted

03/03/2022 at 09:52AM

51
#>126 - pankace / @pankace_Frosted

03/03/2022 at 09:46AM