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):
08/04/2014 at 02:06AM
08/05/2014 at 09:55PM
08/26/2014 at 03:54PM
09/17/2014 at 01:14AM
09/23/2014 at 08:28PM
09/28/2014 at 03:14AM
10/10/2014 at 07:37PM
10/22/2014 at 03:42PM
11/15/2014 at 07:39PM
11/26/2014 at 10:30AM
12/04/2014 at 09:50PM
12/18/2014 at 04:39PM
12/31/2014 at 09:34AM
#314 - Carlos A HenrĂquez Q / @lagunex
01/18/2015 at 06:18PM
01/25/2015 at 01:42PM
01/28/2015 at 06:35PM
02/16/2015 at 02:55AM
02/19/2015 at 09:53PM
02/22/2015 at 01:11PM
02/26/2015 at 10:54AM
03/02/2015 at 03:33AM
03/10/2015 at 10:11AM
03/30/2015 at 12:39PM
03/30/2015 at 03:29PM
04/09/2015 at 06:39AM
04/16/2015 at 12:50PM
04/20/2015 at 05:57PM
04/21/2015 at 06:57AM
06/15/2015 at 12:29PM
06/19/2015 at 08:13AM