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):
06/03/2014 at 06:53PM
06/07/2014 at 04:09AM
06/26/2014 at 01:53AM
06/30/2014 at 09:20PM
07/01/2014 at 09:49AM
07/07/2014 at 12:28PM
07/08/2014 at 08:35PM
07/11/2014 at 04:06PM
07/11/2014 at 06:27PM
07/13/2014 at 10:31AM
07/16/2014 at 08:44PM
07/27/2014 at 01:16PM
07/27/2014 at 01:30PM
07/28/2014 at 08:31PM
08/10/2014 at 12:04PM
08/19/2014 at 03:01AM
08/19/2014 at 09:10PM
08/23/2014 at 04:11PM
08/25/2014 at 03:33PM
09/03/2014 at 08:00PM
09/08/2014 at 04:15PM
09/13/2014 at 06:03AM
09/13/2014 at 09:32PM
09/24/2014 at 04:43PM
10/04/2014 at 06:43PM
#506 - Mateusz Jedrzejewski / @mjedrz
10/22/2014 at 08:05PM
10/23/2014 at 03:07AM
10/27/2014 at 06:03AM
10/28/2014 at 07:23PM
11/13/2014 at 02:08PM