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
753 remaining solutions by
signing in and submitting your own entry
#754
BitLad / @BitLad -
Score: 30 -
01/31/18 @ 18:37
veeeexo<Esc>paf)<Esc>kIf=<Esc>A;<Esc>hx:w<CR>:wq<CR>
0 comments
754 active golfers, 2362 entries
Leaderboard (lowest score wins):
05/09/2014 at 04:35PM
05/09/2014 at 07:41PM
05/09/2014 at 08:30PM
05/09/2014 at 08:44PM
05/09/2014 at 10:18PM
05/10/2014 at 12:25AM
05/10/2014 at 06:15AM
05/10/2014 at 11:10AM
05/10/2014 at 12:49PM
05/10/2014 at 01:56PM
05/10/2014 at 03:21PM
05/10/2014 at 03:26PM
05/11/2014 at 09:01AM
05/11/2014 at 05:26PM
05/12/2014 at 09:23AM
05/12/2014 at 12:14PM
05/12/2014 at 04:17PM
05/13/2014 at 01:16AM
05/14/2014 at 09:00PM
05/15/2014 at 01:21AM
05/16/2014 at 06:39PM
05/16/2014 at 09:26PM
05/16/2014 at 10:30PM
05/18/2014 at 01:22PM
05/18/2014 at 10:19PM
05/19/2014 at 04:58PM
05/20/2014 at 07:47PM
05/20/2014 at 09:19PM
05/22/2014 at 09:10AM
05/23/2014 at 05:12PM