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

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

95 active golfers, 300 entries

Solutions by @WutongYujie:
24
#20 - 梧桐王子 / @WutongYujie

12/21/2017 at 03:30AM

26
#>52 - 梧桐王子 / @WutongYujie

12/21/2017 at 03:28AM

26
#>52 - 梧桐王子 / @WutongYujie

12/21/2017 at 03:29AM

27
#>54 - 梧桐王子 / @WutongYujie

12/21/2017 at 03:28AM

30
#>64 - 梧桐王子 / @WutongYujie

12/21/2017 at 03:27AM

33
#>73 - 梧桐王子 / @WutongYujie

12/21/2017 at 03:26AM

50
#>82 - 梧桐王子 / @WutongYujie

12/21/2017 at 03:25AM