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

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

94 active golfers, 299 entries

Solutions by @majo_senf:
24
#27 - majo senf / @majo_senf

06/24/2019 at 09:37AM

25
#>42 - majo senf / @majo_senf

06/24/2019 at 09:37AM

26
#>51 - majo senf / @majo_senf

06/24/2019 at 09:34AM

27
#>53 - majo senf / @majo_senf

06/24/2019 at 09:33AM

28
#>57 - majo senf / @majo_senf

06/24/2019 at 09:32AM

29
#>60 - majo senf / @majo_senf

06/24/2019 at 09:31AM

30
#>63 - majo senf / @majo_senf

06/24/2019 at 09:29AM

31
#>64 - majo senf / @majo_senf

06/24/2019 at 09:28AM

33
#>72 - majo senf / @majo_senf

06/24/2019 at 09:27AM

35
#>74 - majo senf / @majo_senf

06/24/2019 at 09:26AM

37
#>75 - majo senf / @majo_senf

06/24/2019 at 09:22AM

43
#>76 - majo senf / @majo_senf

06/24/2019 at 09:19AM