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 by @songz:

Unlock 8 remaining solutions by signing in and submitting your own entry
Created by: @juancolacelli

90 active golfers, 291 entries

Solutions by @songz:
24
#9 - Song Zheng / @songz

07/26/2017 at 06:45PM

24
#>9 - Song Zheng / @songz

07/26/2017 at 07:15PM

25
#>35 - Song Zheng / @songz

07/26/2017 at 06:44PM

26
#>46 - Song Zheng / @songz

07/26/2017 at 06:38PM

29
#>56 - Song Zheng / @songz

07/26/2017 at 06:36PM

35
#>70 - Song Zheng / @songz

07/26/2017 at 06:06PM

50
#>78 - Song Zheng / @songz

07/26/2017 at 06:02PM

82
#>86 - Song Zheng / @songz

07/26/2017 at 06:01PM