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

92 active golfers, 293 entries

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

10/28/2020 at 09:07AM

26
#>49 - chocolate / @chocola81394123

10/28/2020 at 09:03AM

26
#>49 - chocolate / @chocola81394123

10/28/2020 at 09:04AM

27
#>51 - chocolate / @chocola81394123

10/28/2020 at 09:00AM

28
#>55 - chocolate / @chocola81394123

10/28/2020 at 09:00AM

29
#>58 - chocolate / @chocola81394123

10/28/2020 at 08:56AM

29
#>58 - chocolate / @chocola81394123

10/28/2020 at 09:01AM

30
#>61 - chocolate / @chocola81394123

10/28/2020 at 08:48AM

32
#>66 - chocolate / @chocola81394123

10/28/2020 at 08:45AM

39
#>74 - chocolate / @chocola81394123

10/28/2020 at 08:42AM

41
#>74 - chocolate / @chocola81394123

10/28/2020 at 08:26AM

42
#>74 - chocolate / @chocola81394123

10/28/2020 at 08:17AM

42
#>74 - chocolate / @chocola81394123

10/28/2020 at 08:23AM