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

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

94 active golfers, 299 entries

Solutions by @chocola81394123:
25
#45 - chocolate / @chocola81394123

10/28/2020 at 09:07AM

26
#>51 - chocolate / @chocola81394123

10/28/2020 at 09:03AM

26
#>51 - chocolate / @chocola81394123

10/28/2020 at 09:04AM

27
#>53 - chocolate / @chocola81394123

10/28/2020 at 09:00AM

28
#>57 - chocolate / @chocola81394123

10/28/2020 at 09:00AM

29
#>60 - chocolate / @chocola81394123

10/28/2020 at 08:56AM

29
#>60 - chocolate / @chocola81394123

10/28/2020 at 09:01AM

30
#>63 - chocolate / @chocola81394123

10/28/2020 at 08:48AM

32
#>68 - chocolate / @chocola81394123

10/28/2020 at 08:45AM

39
#>76 - chocolate / @chocola81394123

10/28/2020 at 08:42AM

41
#>76 - chocolate / @chocola81394123

10/28/2020 at 08:26AM

42
#>76 - chocolate / @chocola81394123

10/28/2020 at 08:17AM

42
#>76 - chocolate / @chocola81394123

10/28/2020 at 08:23AM