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

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

96 active golfers, 324 entries

Solutions by @DHM29978992:
25
#43 - DHM / @DHM29978992

04/25/2018 at 04:06AM

26
#>53 - DHM / @DHM29978992

04/25/2018 at 04:04AM

30
#>65 - DHM / @DHM29978992

04/25/2018 at 04:02AM

33
#>74 - DHM / @DHM29978992

04/25/2018 at 03:57AM