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
756 remaining solutions by
signing in and submitting your own entry
#757
BitLad / @BitLad -
Score: 30 -
01/31/18 @ 18:37
veeeexo<Esc>paf)<Esc>kIf=<Esc>A;<Esc>hx:w<CR>:wq<CR>
0 comments
757 active golfers, 2372 entries
Leaderboard (lowest score wins):
09/22/2014 at 07:37PM
09/30/2014 at 07:37PM
10/06/2014 at 01:42AM
10/10/2014 at 03:16AM
10/12/2014 at 02:51AM
10/16/2014 at 08:24PM
10/18/2014 at 04:15PM
10/21/2014 at 04:13AM
11/06/2014 at 08:28PM
11/17/2014 at 04:32PM
11/20/2014 at 09:17PM
12/04/2014 at 11:12PM
12/08/2014 at 06:21PM
12/11/2014 at 08:54AM
12/17/2014 at 03:21PM
12/22/2014 at 04:25PM
01/08/2015 at 02:54PM
01/10/2015 at 06:38PM
01/15/2015 at 11:26AM
01/18/2015 at 07:07PM
02/22/2015 at 05:37AM
02/25/2015 at 10:33PM
03/04/2015 at 08:28AM
03/11/2015 at 02:01AM
03/29/2015 at 04:42PM
03/29/2015 at 07:46PM
04/12/2015 at 09:24PM
04/18/2015 at 03:07PM
04/26/2015 at 12:51PM
05/02/2015 at 02:26PM