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):
11/17/2014 at 09:10PM
11/19/2014 at 04:07AM
11/22/2014 at 02:12PM
12/06/2014 at 07:04PM
12/16/2014 at 08:52PM
01/27/2015 at 07:56AM
02/15/2015 at 12:09AM
02/27/2015 at 01:00PM
03/04/2015 at 10:35AM
04/15/2015 at 07:45PM
04/29/2015 at 12:42AM
05/28/2015 at 11:12PM
06/11/2015 at 09:31PM
06/29/2015 at 05:32PM
07/09/2015 at 06:41PM
08/06/2015 at 05:14AM
11/30/2015 at 08:52AM
12/09/2015 at 10:51PM
12/25/2015 at 11:00PM
12/28/2015 at 11:21AM
02/26/2016 at 02:12PM
06/11/2016 at 02:43PM
06/21/2016 at 03:46AM
11/23/2016 at 06:09PM
05/04/2017 at 08:34PM
07/10/2017 at 01:39PM
08/10/2017 at 08:53AM
06/13/2018 at 08:37PM
08/11/2018 at 12:00PM
08/17/2018 at 08:08AM