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):
05/28/2014 at 02:24AM
05/28/2014 at 10:00PM
#33 - Marcin Szamotulski / @me_coot
05/30/2014 at 10:43AM
05/30/2014 at 07:29PM
05/30/2014 at 08:36PM
05/30/2014 at 09:00PM
05/31/2014 at 01:36PM
06/03/2014 at 04:23AM
06/03/2014 at 03:21PM
#40 - Julian Priestley / @Juzley
06/03/2014 at 04:32PM
06/05/2014 at 04:20AM
06/06/2014 at 09:34PM
06/06/2014 at 09:52PM
06/08/2014 at 03:28AM
06/12/2014 at 12:49PM
06/13/2014 at 03:09PM
06/13/2014 at 05:20PM
06/14/2014 at 01:58PM
06/15/2014 at 12:51AM
06/16/2014 at 07:08AM
06/16/2014 at 12:23PM
06/17/2014 at 02:56PM
06/17/2014 at 09:55PM
06/20/2014 at 06:45PM
06/23/2014 at 08:41AM
06/24/2014 at 04:09AM
06/28/2014 at 01:26PM
07/01/2014 at 04:06AM
07/01/2014 at 04:34AM
07/04/2014 at 07:44PM