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

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

96 active golfers, 324 entries

Solutions by @huho_xu:
25
#40 - huho / @huho_xu

07/26/2017 at 08:49PM

26
#>51 - huho / @huho_xu

07/26/2017 at 08:39PM

32
#>68 - huho / @huho_xu

07/26/2017 at 08:29PM