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

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

419 active golfers, 1056 entries

Solutions by @nickandbro:
11
#145 - nickGPT / @nickandbro

08/28/2024 at 08:54PM

12
#>263 - nickGPT / @nickandbro

08/28/2024 at 08:54PM

13
#>358 - nickGPT / @nickandbro

08/28/2024 at 08:54PM

14
#>386 - nickGPT / @nickandbro

08/28/2024 at 08:54PM

15
#>393 - nickGPT / @nickandbro

08/28/2024 at 08:54PM

16
#>401 - nickGPT / @nickandbro

08/28/2024 at 08:54PM

17
#>404 - nickGPT / @nickandbro

08/28/2024 at 08:54PM

18
#>409 - nickGPT / @nickandbro

08/28/2024 at 08:54PM

19
#>411 - nickGPT / @nickandbro

08/28/2024 at 08:54PM

20
#>412 - nickGPT / @nickandbro

08/28/2024 at 08:54PM

21
#>413 - nickGPT / @nickandbro

08/28/2024 at 08:54PM

22
#>415 - nickGPT / @nickandbro

08/28/2024 at 08:54PM

24
#>416 - nickGPT / @nickandbro

08/28/2024 at 08:53PM

25
#>417 - nickGPT / @nickandbro

08/28/2024 at 08:53PM

27
#>418 - nickGPT / @nickandbro

08/28/2024 at 08:53PM

38
#>419 - nickGPT / @nickandbro

08/28/2024 at 08:53PM