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

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

404 active golfers, 1009 entries

Solutions by @scottrick49:
11
#130 - Scott Atkins / @scottrick49

07/15/2021 at 12:37PM

11
#>130 - Scott Atkins / @scottrick49

07/15/2021 at 12:38PM

11
#>130 - Scott Atkins / @scottrick49

07/15/2021 at 12:40PM

11
#>130 - Scott Atkins / @scottrick49

08/03/2021 at 12:37PM

11
#>130 - Scott Atkins / @scottrick49

08/03/2021 at 12:37PM

12
#>248 - Scott Atkins / @scottrick49

07/15/2021 at 12:35PM

13
#>345 - Scott Atkins / @scottrick49

07/15/2021 at 12:32PM

13
#>346 - Scott Atkins / @scottrick49

08/03/2021 at 12:37PM

14
#>371 - Scott Atkins / @scottrick49

07/15/2021 at 12:31PM

14
#>371 - Scott Atkins / @scottrick49

08/03/2021 at 12:36PM

14
#>371 - Scott Atkins / @scottrick49

08/03/2021 at 12:36PM

16
#>387 - Scott Atkins / @scottrick49

07/15/2021 at 12:31PM

21
#>398 - Scott Atkins / @scottrick49

07/15/2021 at 12:31PM

24
#>401 - Scott Atkins / @scottrick49

07/15/2021 at 12:31PM

36
#>403 - Scott Atkins / @scottrick49

07/15/2021 at 12:30PM

36
#>403 - Scott Atkins / @scottrick49

07/15/2021 at 12:33PM