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):
07/30/2018 at 07:27PM
12/04/2018 at 01:56PM
12/18/2018 at 06:07PM
12/18/2018 at 07:56PM
01/30/2019 at 08:00PM
02/22/2019 at 04:30PM
02/27/2019 at 04:13AM
02/28/2019 at 02:26PM
03/02/2019 at 08:51PM
03/03/2019 at 06:27AM
03/19/2019 at 01:30AM
04/15/2019 at 11:39AM
05/04/2019 at 11:10AM
05/06/2019 at 08:52PM
05/08/2019 at 08:48PM
05/10/2019 at 10:39PM
06/06/2019 at 01:01PM
08/31/2019 at 06:00AM
09/16/2019 at 10:29AM
09/24/2019 at 12:44PM
11/13/2019 at 09:04AM
02/23/2020 at 10:42AM
03/17/2020 at 10:41PM
03/27/2020 at 07:21AM
03/29/2020 at 06:29PM
05/15/2020 at 12:03AM
05/15/2020 at 02:31PM
11/18/2020 at 06:11PM
12/17/2020 at 06:52PM
07/30/2021 at 01:06AM