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):
02/05/2019 at 12:00AM
03/08/2019 at 04:46PM
05/18/2019 at 08:07AM
06/17/2019 at 01:08PM
09/26/2019 at 11:38AM
11/27/2019 at 01:04PM
05/02/2020 at 10:54PM
06/08/2020 at 12:39AM
10/30/2022 at 10:39PM
11/21/2024 at 02:07PM
02/22/2025 at 02:24AM
05/15/2014 at 01:17AM
05/15/2014 at 01:43PM
05/16/2014 at 09:06AM
05/17/2014 at 01:15PM
05/17/2014 at 08:46PM
05/19/2014 at 08:42AM
05/19/2014 at 06:35PM
05/21/2014 at 11:47AM
05/26/2014 at 04:27AM
06/01/2014 at 01:36PM
06/02/2014 at 03:22AM
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