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

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

90 active golfers, 291 entries

Solutions by @its_terra:
24
#28 - Maksim / @its_terra

01/01/2020 at 09:04PM

24
#>28 - Maksim / @its_terra

01/01/2020 at 09:11PM

25
#>42 - Maksim / @its_terra

01/01/2020 at 09:01PM

26
#>48 - Maksim / @its_terra

01/01/2020 at 08:58PM

29
#>57 - Maksim / @its_terra

01/01/2020 at 08:54PM

30
#>60 - Maksim / @its_terra

01/01/2020 at 08:56PM

31
#>61 - Maksim / @its_terra

01/01/2020 at 08:47PM

32
#>65 - Maksim / @its_terra

01/01/2020 at 08:41PM

34
#>70 - Maksim / @its_terra

01/01/2020 at 08:39PM