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 @RoyerMoyer1:

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

90 active golfers, 291 entries

Solutions by @RoyerMoyer1:
24
#24 - royer / @RoyerMoyer1

09/24/2018 at 06:54PM

25
#>39 - royer / @RoyerMoyer1

09/24/2018 at 06:52PM

26
#>48 - royer / @RoyerMoyer1

09/24/2018 at 06:50PM

27
#>50 - royer / @RoyerMoyer1

09/24/2018 at 06:48PM

29
#>57 - royer / @RoyerMoyer1

09/24/2018 at 06:43PM

30
#>60 - royer / @RoyerMoyer1

09/24/2018 at 06:41PM

33
#>69 - royer / @RoyerMoyer1

09/24/2018 at 06:39PM

37
#>72 - royer / @RoyerMoyer1

09/24/2018 at 06:27PM