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
727 remaining solutions by
signing in and submitting your own entry
#728
BitLad / @BitLad -
Score: 30 -
01/31/18 @ 18:37
veeeexo<Esc>paf)<Esc>kIf=<Esc>A;<Esc>hx:w<CR>:wq<CR>
0 comments
728 active golfers, 2215 entries
Leaderboard (lowest score wins):
02/03/2016 at 05:56PM
02/12/2016 at 03:25PM
02/13/2016 at 08:06PM
02/23/2016 at 02:27AM
02/27/2016 at 04:10AM
03/11/2016 at 02:04PM
04/01/2016 at 10:30AM
04/03/2016 at 06:21PM
04/26/2016 at 08:59AM
05/08/2016 at 03:54AM
05/20/2016 at 03:32PM
06/09/2016 at 03:38PM
06/11/2016 at 01:58PM
07/21/2016 at 12:50AM
07/24/2016 at 06:23PM
08/01/2016 at 05:21AM
08/30/2016 at 03:58AM
09/02/2016 at 11:14AM
09/03/2016 at 05:01AM
09/10/2016 at 09:49PM
09/26/2016 at 07:13PM
10/01/2016 at 04:29PM
10/05/2016 at 02:36PM
10/12/2016 at 03:44PM
10/24/2016 at 11:17AM
10/31/2016 at 04:17AM
11/17/2016 at 10:33PM
11/23/2016 at 11:00PM
12/21/2016 at 01:22PM
02/21/2017 at 07:32AM