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):
08/15/2014 at 10:32PM
08/18/2014 at 04:32AM
08/20/2014 at 09:55AM
08/21/2014 at 02:46PM
08/27/2014 at 07:23AM
#66 - @hauleth@hauleth.dev / @hauleth
09/02/2014 at 10:12PM
09/03/2014 at 04:14PM
09/03/2014 at 09:27PM
#69 - George C Tsiagalakis / @gts_tw
09/05/2014 at 01:34PM
09/08/2014 at 10:42AM
#71 - Carlos Solares / @cas
09/08/2014 at 03:24PM
09/13/2014 at 08:42PM
09/19/2014 at 10:29AM
09/30/2014 at 03:56AM
09/30/2014 at 09:58AM
10/08/2014 at 02:50PM
10/11/2014 at 02:21PM
10/17/2014 at 10:09PM
10/18/2014 at 10:27AM
11/02/2014 at 09:20PM
#81 - Mauro Persano / @fzort
11/22/2014 at 03:02PM
11/30/2014 at 02:19PM
12/19/2014 at 12:58AM
12/19/2014 at 10:20PM
12/27/2014 at 06:35PM
01/07/2015 at 03:36AM
#87 - Carlos A Henríquez Q / @lagunex
01/18/2015 at 03:49PM
01/19/2015 at 04:41AM
01/27/2015 at 03:34PM
03/15/2015 at 05:38PM