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 64 remaining solutions by signing in and submitting your own entry
#65 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

65 active golfers, 185 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 / @Gabriel_HSiq

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 - Vim Girl / @vim_girl

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

25
#24 - Vaughn Cato / @vaughncato

07/21/2017 at 01:48PM

25
#25 - huho / @huho_xu

07/26/2017 at 08:49PM

25
#26 - Baine Wedlock / @BaineWedlock

08/10/2017 at 08:30PM

25
#27 - François Marais / @maraisf

04/03/2018 at 04:47PM

25
#28 - DHM / @DHM29978992

04/25/2018 at 04:06AM

26
#29 - Jan Bundesmann / @janbundesmann

07/21/2017 at 08:50AM

26
#30 - Gurukandhamoorthi / @Gurukandhamoor1

07/21/2017 at 02:33PM