Change name of a variable
Replace the name of the $variable with the fastest move possible. The challenge is having a command that allow you to easily change the variable name even if its indented.
Start file
var $oki = "value";
End file
var $hl = "value";
1c1
< var $oki = "value";
---
> var $hl = "value";
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
136 remaining solutions by
signing in and submitting your own entry
#137
luffy / @raxcoi -
Score: 20 -
07/30/14 @ 10:45
:s/\$oki/\$hl/g<CR>:wq<CR>
0 comments
137 active golfers, 179 entries
Leaderboard (lowest score wins):
06/04/2015 at 08:13PM
06/22/2015 at 12:52PM
09/29/2015 at 02:53PM
10/31/2015 at 10:40PM
11/18/2015 at 09:30AM
01/14/2016 at 05:53PM
02/27/2016 at 11:12PM
03/17/2016 at 11:15AM
08/05/2016 at 02:47PM
08/28/2016 at 08:09PM
05/30/2017 at 11:54AM
08/24/2017 at 03:55PM
12/07/2017 at 10:14AM
03/13/2018 at 04:55AM
#105 - Jaakko Hannikainen / @jgke_
09/26/2018 at 11:18AM
09/28/2018 at 06:07PM
10/01/2018 at 09:14PM
10/02/2018 at 07:51PM
04/22/2019 at 08:39AM
05/10/2019 at 02:57AM
07/01/2019 at 10:36AM
06/01/2020 at 04:03PM
06/02/2020 at 03:38PM
08/17/2020 at 05:04PM
08/21/2020 at 10:47PM
11/13/2020 at 03:45PM
02/07/2021 at 09:52AM
09/14/2021 at 12:01AM
12/21/2021 at 05:03PM
06/13/2022 at 04:55AM