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):
06/02/2014 at 09:36PM
06/05/2014 at 10:36PM
06/07/2014 at 01:30PM
06/12/2014 at 07:37PM
06/14/2014 at 05:46PM
06/16/2014 at 06:56PM
06/28/2014 at 01:58AM
07/15/2014 at 02:57AM
07/31/2014 at 12:50PM
08/04/2014 at 09:12PM
08/12/2014 at 11:48PM
08/30/2014 at 10:42AM
08/30/2014 at 10:51AM
10/06/2014 at 02:28PM
10/14/2014 at 03:21PM
11/02/2014 at 12:36PM
11/26/2014 at 03:18PM
12/06/2014 at 11:08AM
01/29/2015 at 05:41PM
02/01/2015 at 02:28AM
02/03/2015 at 11:49PM
02/08/2015 at 05:15PM
02/27/2015 at 09:17PM
03/02/2015 at 04:25PM
03/03/2015 at 05:58PM
03/27/2015 at 09:07PM
05/07/2015 at 09:40PM
06/11/2015 at 08:43PM
08/23/2015 at 03:52PM
10/05/2015 at 08:42AM