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):
10/07/2018 at 05:57PM
11/09/2018 at 06:33AM
11/14/2018 at 08:24AM
11/19/2018 at 04:46PM
11/26/2018 at 05:26AM
12/08/2018 at 11:06PM
12/18/2018 at 08:37PM
12/19/2018 at 12:42PM
01/13/2019 at 02:02AM
#220 - Henrique Malheiro / @rike09
01/24/2019 at 12:18PM
02/10/2019 at 08:38AM
03/02/2019 at 09:05PM
03/11/2019 at 03:52PM
03/14/2019 at 03:43AM
03/20/2019 at 08:04PM
05/01/2019 at 05:08AM
05/01/2019 at 09:35PM
05/02/2019 at 08:55AM
05/21/2019 at 09:24PM
05/21/2019 at 09:55PM
07/01/2019 at 07:51AM
07/07/2019 at 06:06PM
07/25/2019 at 09:56AM
08/09/2019 at 04:45AM
08/15/2019 at 07:55PM
08/22/2019 at 12:25PM
10/05/2019 at 12:37PM
10/10/2019 at 11:49AM
10/22/2019 at 01:54AM
10/23/2019 at 10:48PM