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 @37fatos:

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

94 active golfers, 299 entries

Solutions by @37fatos:
24
#34 - A A A / @37fatos

03/13/2021 at 02:44AM

25
#>45 - A A A / @37fatos

03/13/2021 at 02:43AM

26
#>51 - A A A / @37fatos

03/13/2021 at 02:40AM

29
#>60 - A A A / @37fatos

03/13/2021 at 02:38AM

30
#>63 - A A A / @37fatos

03/13/2021 at 02:36AM