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):
07/24/2014 at 12:25PM
07/24/2014 at 08:06PM
07/25/2014 at 09:25AM
07/26/2014 at 12:01PM
07/27/2014 at 08:15AM
07/28/2014 at 10:17AM
07/28/2014 at 04:08PM
07/30/2014 at 05:39PM
07/31/2014 at 11:49AM
#40 - Joakim Hansen / @gnofs
07/31/2014 at 12:34PM
08/01/2014 at 07:36AM
08/02/2014 at 03:18AM
08/03/2014 at 06:08AM
08/03/2014 at 04:45PM
08/03/2014 at 07:20PM
08/04/2014 at 09:37AM
08/04/2014 at 09:27PM
#48 - Bednarik Boldizsar / @bboldi
08/05/2014 at 09:11AM
08/07/2014 at 09:08PM
08/07/2014 at 11:32PM
08/09/2014 at 01:10AM
08/09/2014 at 09:44AM
08/10/2014 at 11:40AM
08/12/2014 at 03:42PM
08/12/2014 at 07:31PM
08/13/2014 at 06:25AM
08/13/2014 at 10:25PM
08/13/2014 at 10:26PM
08/15/2014 at 03:27PM
08/15/2014 at 06:27PM