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 59713ae5bb056f16b6000002

Hello ${world}

Migrate a JavaScript String from concatenation to ES6 interpolation.

Start file
let world = 'world';
console.log('hello ' + world);
console.log('bye ' + world + '!');
End file
let world = 'world';
console.log(`hello ${world}`);
console.log(`bye ${world}!`);

View Diff

2,3c2,3
< console.log('hello ' + world);
< console.log('bye ' + world + '!');
---
> console.log(`hello ${world}`);
> console.log(`bye ${world}!`);

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 95 remaining solutions by signing in and submitting your own entry
#96 Robbin Schepers / @Roboroads - Score: 137 - 07/21/17 @ 11:51
kjf+_f+a<BS><BS><BS>${<Del><Esc>LJkA<Esc>jkjkhi}'<BS>`<Esc>hhjkhhhhhhhhhhhh<BS>li<BS>`<Esc>kjjli<BS>`<Esc>llllllllllllllllllvF'nhhhhhhhhhhhh$hhhhhhhhhhhhhhhhhc${world{<BS>}<Del>`<BS>!`<Esc>:w<CR>:wq<CR>

0 comments


Created by: @juancolacelli

96 active golfers, 324 entries

Leaderboard (lowest score wins):
24
#1 - Urtica dioica / @udioica

07/21/2017 at 02:36AM

24
#2 - Jacob Buete / @JBuete

07/21/2017 at 04:36AM

24
#3 - Smylers / @Smylers2

07/21/2017 at 06:37AM

24
#4 - Anne Pacalet / @_Anne_P

07/21/2017 at 08:08AM

24
#5 - Gabriel Siqueira / @gabrielhsiq

07/21/2017 at 12:04PM

24
#6 - Peter Chynoweth / @pcchynoweth

07/21/2017 at 09:14PM

24
#7 - Petro Тrouq / @zulolosi

07/24/2017 at 08:51AM

24
#8 - Saki Gw / @Sakigw

07/26/2017 at 11:53AM

24
#9 - Song Zheng / @songz

07/26/2017 at 06:45PM

24
#10 - Maricris Bonzo / @seemcat

07/26/2017 at 07:20PM

24
#11 - devoh / @devvohh

07/29/2017 at 08:35AM

24
#12 - Karol Łukaszewicz / @Karolukaszewicz

07/31/2017 at 12:21PM

24
#13 - John Braxler / @braxler

07/31/2017 at 03:24PM

24
#14 - Will / @obiwan__k3n00bi

08/03/2017 at 02:52AM

24
#15 - Ky Statham / @ijustwannacode

08/16/2017 at 06:43PM

24
#16 - Terry Ding / @TerryDing77

08/23/2017 at 08:28PM

24
#17 - SirVimGolf / @SirVimGolf

08/23/2017 at 09:55PM

24
#18 - Turkey Man / @lvturkeyman

11/09/2017 at 02:53AM

24
#19 - Rubén Laguna / @ecerulm

11/26/2017 at 08:06PM

24
#20 - 梧桐王子 / @WutongYujie

12/21/2017 at 03:30AM

24
#21 - BarbaJol / @drpproteus

01/06/2018 at 12:14PM

24
#22 - ParasamGateZero / @ParasamGateZero

02/12/2018 at 07:01AM

24
#23 - Daniël De Koker / @daniel_koker

07/05/2018 at 07:37AM

24
#24 - royer / @RoyerMoyer1

09/24/2018 at 06:54PM

24
#25 - name / @name65894813

11/27/2018 at 03:58PM

24
#26 - Tomás Cetkovich / @SaladeDeMerde

01/19/2019 at 06:31PM

24
#27 - majo senf / @majo_senf

06/24/2019 at 09:37AM

24
#28 - Maksim / @its_terra

01/01/2020 at 09:04PM

24
#29 - Miłosz Łakomy / @foobar01123

01/14/2020 at 04:52AM

24
#30 - 김범준 / @kmbmjn

02/06/2020 at 05:22AM