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
759 remaining solutions by
signing in and submitting your own entry
#760
BitLad / @BitLad -
Score: 30 -
01/31/18 @ 18:37
veeeexo<Esc>paf)<Esc>kIf=<Esc>A;<Esc>hx:w<CR>:wq<CR>
0 comments
760 active golfers, 2379 entries
Leaderboard (lowest score wins):
01/14/2015 at 07:09PM
02/13/2015 at 03:32PM
02/24/2015 at 03:37PM
02/25/2015 at 12:56AM
03/04/2015 at 09:36PM
03/25/2015 at 01:55PM
04/10/2015 at 11:34PM
04/18/2015 at 06:29PM
04/21/2015 at 07:00PM
04/24/2015 at 05:40AM
05/02/2015 at 10:00AM
07/08/2015 at 11:55PM
08/07/2015 at 03:33PM
#615 - Kirill Cherkashin / @kirjs
09/15/2015 at 02:30PM
10/03/2015 at 11:55PM
12/14/2015 at 12:41AM
01/20/2016 at 06:29PM
02/07/2016 at 11:49AM
02/17/2016 at 11:23AM
03/01/2016 at 05:40PM
03/16/2016 at 09:29AM
05/01/2016 at 04:16AM
05/07/2016 at 09:39PM
05/09/2016 at 04:24PM
05/31/2016 at 02:28AM
06/23/2016 at 05:05PM
06/27/2016 at 11:08PM
08/31/2016 at 04:11AM
10/09/2016 at 06:21AM