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

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

94 active golfers, 299 entries

Solutions by @vimfiz:
32
#68 - Vimfiz / @vimfiz

06/07/2019 at 05:22PM

33
#>72 - Vimfiz / @vimfiz

06/07/2019 at 05:20PM

37
#>75 - Vimfiz / @vimfiz

06/07/2019 at 05:18PM

38
#>75 - Vimfiz / @vimfiz

06/07/2019 at 05:17PM

43
#>76 - Vimfiz / @vimfiz

06/07/2019 at 05:08PM

56
#>82 - Vimfiz / @vimfiz

06/07/2019 at 05:05PM