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

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

92 active golfers, 293 entries

Solutions by @ecerulm:
24
#19 - Rubén Laguna / @ecerulm

11/26/2017 at 08:06PM

25
#>38 - Rubén Laguna / @ecerulm

11/26/2017 at 08:03PM

26
#>49 - Rubén Laguna / @ecerulm

11/26/2017 at 08:01PM

27
#>51 - Rubén Laguna / @ecerulm

11/26/2017 at 07:56PM

30
#>61 - Rubén Laguna / @ecerulm

11/26/2017 at 07:54PM

33
#>70 - Rubén Laguna / @ecerulm

11/26/2017 at 07:53PM

44
#>74 - Rubén Laguna / @ecerulm

11/26/2017 at 07:49PM

53
#>80 - Rubén Laguna / @ecerulm

11/26/2017 at 07:49PM

67
#>85 - Rubén Laguna / @ecerulm

11/26/2017 at 07:46PM