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):
07/06/2014 at 04:54AM
07/06/2014 at 06:07PM
07/06/2014 at 09:44PM
07/14/2014 at 02:50AM
07/15/2014 at 06:00PM
07/20/2014 at 07:02PM
07/21/2014 at 05:28AM
07/21/2014 at 06:00PM
07/22/2014 at 10:47AM
07/23/2014 at 10:16AM
07/26/2014 at 06:06PM
07/27/2014 at 01:12PM
07/27/2014 at 01:13PM
07/27/2014 at 01:28PM
07/31/2014 at 12:16PM
08/01/2014 at 04:10PM
08/08/2014 at 01:45PM
08/08/2014 at 05:44PM
08/12/2014 at 07:05PM
08/13/2014 at 06:24AM
#81 - Roman Charushin / @lompee
08/15/2014 at 12:57PM
08/18/2014 at 06:26PM
08/18/2014 at 09:24PM
08/20/2014 at 02:09AM
08/24/2014 at 12:23PM
09/02/2014 at 05:55AM
#87 - @hauleth@hauleth.dev / @hauleth
09/02/2014 at 10:08PM
09/05/2014 at 06:35AM
09/11/2014 at 10:13PM
09/13/2014 at 06:49AM