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 4fc9d767d3a0d4000100000e

Append semicolon after expressions

Some lines need the semicolon, some don't.

Start file
var foo

var bar = myCoolStuff()

callRemote()

foo = callTheWorld()
End file
var foo;

var bar = myCoolStuff();

callRemote();

foo = callTheWorld();

View Diff

1c1
< var foo
---
> var foo;
3c3
< var bar = myCoolStuff()
---
> var bar = myCoolStuff();
5c5
< callRemote()
---
> callRemote();
7c7
< foo = callTheWorld()
---
> foo = callTheWorld();

Solutions by @jwworth:

Unlock 4 remaining solutions by signing in and submitting your own entry
Created by: @laurilehmijoki

403 active golfers, 1005 entries

Solutions by @jwworth:
13
#338 - Jake Worth / @jwworth

08/24/2016 at 12:23AM

13
#>342 - Jake Worth / @jwworth

07/25/2018 at 12:27AM

13
#>344 - Jake Worth / @jwworth

01/29/2020 at 12:24AM

16
#>386 - Jake Worth / @jwworth

01/29/2020 at 12:17AM