Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 53cee5e1c5f4b4000208b285

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";

View Diff

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 107 remaining solutions by signing in and submitting your own entry
#108 luffy / @raxcoi - Score: 20 - 07/30/14 @ 10:45
:s/\$oki/\$hl/g<CR>:wq<CR>

0 comments


Created by: @patricknegri

108 active golfers, 136 entries

Leaderboard (lowest score wins):
9
#1 - Carlos López / @morrizon

07/22/2014 at 10:58PM

9
#2 - Ricardo M. Vilchis / @ajkaanbal

07/22/2014 at 11:09PM

9
#3 - Tim Chase / @gumnos

07/22/2014 at 11:27PM

9
#4 - James / @Dronak

07/22/2014 at 11:28PM

9
#5 - Urtica dioica / @udioica

07/22/2014 at 11:37PM

9
#6 - Ben Turner / @phantomwhale

07/23/2014 at 12:16AM

9
#7 - Amit Verma / @amitv12

07/23/2014 at 02:04AM

9
#8 - Caek / @Caek_

07/23/2014 at 02:50AM

9
#9 - John Meisner / @jmeisned

07/23/2014 at 04:30AM

9
#10 - Saher El-Neklawy / @saherneklawy

07/23/2014 at 07:01AM

9
#11 - Pete Johns / @johnsyweb

07/23/2014 at 09:59AM

9
#12 - Michi Loro / @michiloro

07/23/2014 at 10:12AM

9
#13 - Tui Kiken / @TuiKiken

07/23/2014 at 11:55AM

9
#14 - Dmitry Teslenko / @krab_mozga

07/23/2014 at 11:57AM

9
#15 - omesh / @panditaomesh

07/23/2014 at 01:44PM

9
#16 - John Braxler / @braxler

07/23/2014 at 02:09PM

9
#17 - João Carvalho / @joaoCarvas

07/23/2014 at 02:32PM

9
#18 - Petro Тrouq / @zulolosi

07/23/2014 at 05:43PM

9
#19 - Alex K / @alex_kononovich

07/23/2014 at 08:35PM

9
#20 - Robert Siemieniec / @rsiemieniec

07/23/2014 at 08:40PM

9
#21 - Yann Moisan / @YannMoisan

07/23/2014 at 08:54PM

9
#22 - Kelsey Ando / @d_chan42

07/23/2014 at 09:08PM

9
#23 - Pedro Santos / @pedrosans

07/23/2014 at 09:44PM

9
#24 - Bambu / @bambumandinga

07/24/2014 at 12:00AM

9
#25 - w1zeman1p / @wizemanip

07/24/2014 at 03:28AM

9
#26 - RobertT / @techrt2050

07/24/2014 at 04:57AM

9
#27 - HellBentSouthernGent / @ChiefThis

07/24/2014 at 05:43AM

9
#28 - joomy / @cattheory

07/24/2014 at 05:48AM

9
#29 - Milind Ganjoo / @mganjoo

07/24/2014 at 06:21AM

9
#30 - Kai Wood / @kwd_io

07/24/2014 at 07:11AM