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):
02/22/2017 at 02:01AM
03/15/2017 at 08:52PM
03/20/2017 at 03:19PM
04/26/2017 at 05:27AM
05/18/2017 at 01:41PM
05/25/2017 at 05:52PM
05/27/2017 at 06:47PM
06/14/2017 at 02:51PM
06/28/2017 at 10:08PM
08/29/2017 at 11:27AM
11/08/2017 at 06:33PM
11/14/2017 at 12:35PM
01/05/2018 at 03:28PM
02/01/2018 at 04:56AM
02/09/2018 at 09:51AM
03/12/2018 at 10:52PM
03/14/2018 at 01:03PM
04/05/2018 at 04:04AM
04/08/2018 at 01:57PM
04/15/2018 at 02:14AM
05/25/2018 at 04:18PM
06/19/2018 at 08:40PM
07/19/2018 at 12:14AM
08/09/2018 at 08:41AM
08/30/2018 at 10:56PM
09/09/2018 at 08:26PM
09/12/2018 at 06:50AM
09/14/2018 at 09:26AM
09/25/2018 at 02:15PM
09/29/2018 at 10:04PM