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):
06/03/2014 at 02:00AM
06/03/2014 at 03:41PM
06/04/2014 at 08:57PM
06/11/2014 at 01:12AM
06/15/2014 at 02:45PM
06/15/2014 at 11:43PM
06/16/2014 at 07:16AM
06/21/2014 at 09:03PM
06/22/2014 at 07:19PM
06/24/2014 at 08:28PM
06/28/2014 at 09:05AM
07/09/2014 at 06:06AM
07/09/2014 at 09:22PM
07/13/2014 at 02:31PM
07/24/2014 at 06:07AM
07/29/2014 at 11:40AM
07/31/2014 at 10:44AM
08/03/2014 at 07:14PM
08/03/2014 at 08:16PM
#560 - Bednarik Boldizsar / @bboldi
08/04/2014 at 09:07PM
08/08/2014 at 06:46AM
08/13/2014 at 05:32AM
08/24/2014 at 11:42AM
08/26/2014 at 10:21PM
09/08/2014 at 07:07PM
#566 - Christoph Neuroth / @c089
10/18/2014 at 10:00AM
10/28/2014 at 05:27AM
11/03/2014 at 04:31PM
11/10/2014 at 04:30AM
11/19/2014 at 06:51AM