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

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

99 active golfers, 334 entries

Solutions by @phaym:
26
#54 - phaym / @phaym

10/15/2025 at 03:27AM

30
#>66 - phaym / @phaym

10/15/2025 at 03:25AM

33
#>76 - phaym / @phaym

10/15/2025 at 03:21AM

35
#>77 - phaym / @phaym

10/15/2025 at 03:20AM

39
#>80 - phaym / @phaym

10/14/2025 at 01:10PM

48
#>86 - phaym / @phaym

10/14/2025 at 01:08PM

64
#>91 - phaym / @phaym

10/14/2025 at 01:02PM