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

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

94 active golfers, 299 entries

Solutions by @park_jungy:
24
#32 - Jung Yeon Park / @park_jungy

02/16/2021 at 11:50PM

25
#>45 - Jung Yeon Park / @park_jungy

02/16/2021 at 11:49PM

26
#>51 - Jung Yeon Park / @park_jungy

02/16/2021 at 11:47PM

27
#>53 - Jung Yeon Park / @park_jungy

02/16/2021 at 11:46PM

28
#>57 - Jung Yeon Park / @park_jungy

02/16/2021 at 11:45PM

31
#>64 - Jung Yeon Park / @park_jungy

02/16/2021 at 11:44PM

33
#>73 - Jung Yeon Park / @park_jungy

02/16/2021 at 11:43PM

36
#>74 - Jung Yeon Park / @park_jungy

02/16/2021 at 11:42PM