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

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

94 active golfers, 299 entries

Solutions by @ijustwannacode:
24
#15 - Ky Statham / @ijustwannacode

08/16/2017 at 06:43PM

26
#>50 - Ky Statham / @ijustwannacode

08/16/2017 at 06:41PM

28
#>57 - Ky Statham / @ijustwannacode

08/16/2017 at 06:40PM

30
#>62 - Ky Statham / @ijustwannacode

08/16/2017 at 06:38PM

35
#>74 - Ky Statham / @ijustwannacode

08/16/2017 at 06:36PM