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):
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
09/28/2021 at 01:24PM
05/09/2014 at 04:00PM
05/09/2014 at 05:32PM
05/09/2014 at 08:33PM
05/09/2014 at 09:01PM
05/09/2014 at 09:12PM
05/10/2014 at 07:52AM
05/10/2014 at 07:35PM
05/11/2014 at 04:25PM
05/16/2014 at 07:54AM
05/22/2014 at 02:56PM
05/24/2014 at 12:18PM
05/27/2014 at 03:26PM
05/30/2014 at 07:34AM