Extract argument from function
The aim is to see if you can do some refactoring very fast.
Start file
attr("y",function(v){return v})
End file
f=function(v){return v};
attr("y",f)
1c1,2
< attr("y",function(v){return v})
---
> f=function(v){return v};
> attr("y",f)
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
754 remaining solutions by
signing in and submitting your own entry
#755
BitLad / @BitLad -
Score: 30 -
01/31/18 @ 18:37
veeeexo<Esc>paf)<Esc>kIf=<Esc>A;<Esc>hx:w<CR>:wq<CR>
0 comments
755 active golfers, 2364 entries
Leaderboard (lowest score wins):
05/15/2015 at 04:00PM
06/11/2015 at 03:31AM
06/11/2015 at 07:09PM
06/12/2015 at 11:49PM
06/23/2015 at 09:53AM
06/23/2015 at 04:20PM
06/24/2015 at 01:12PM
07/15/2015 at 10:31PM
07/17/2015 at 03:13AM
08/10/2015 at 04:19AM
08/15/2015 at 08:21AM
09/01/2015 at 05:42AM
09/01/2015 at 01:52PM
09/04/2015 at 07:34AM
09/30/2015 at 08:34PM
10/21/2015 at 03:07PM
10/24/2015 at 08:06AM
11/07/2015 at 05:34AM
11/08/2015 at 10:33PM
11/10/2015 at 05:03PM
#141 - Árpád Krejczinger / @krarpi
11/11/2015 at 12:05PM
11/14/2015 at 02:33AM
11/15/2015 at 06:30AM
11/24/2015 at 08:48PM
12/05/2015 at 11:05PM
12/22/2015 at 09:41PM
01/13/2016 at 03:14AM
01/17/2016 at 10:18AM
01/17/2016 at 01:36PM
01/28/2016 at 05:19AM