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 5d010a4fcb4b5c000927f42a

If-then-else regexp

Rules: - golf is never following golf - vim comes first! Drawing a finite-state machine diagram could help. #regexp

Start file
vim
golf
vimvim
vimgolf
golfvim
golfgolf
vimvimvim
vimvimgolf
vimgolfvim
vimgolfgolf
golfvimvim
golfvimgolf
golfgolfvim
golfgolfgolf
vimvimvimvim
vimvimvimgolf
vimvimgolfvim
vimvimgolfgolf
vimgolfvimvim
vimgolfvimgolf
vimgolfgolfvim
vimgolfgolfgolf
golfvimvimvim
golfvimvimgolf
golfvimgolfvim
golfvimgolfgolf
golfgolfvimvim
golfgolfvimgolf
golfgolfgolfvim
golfgolfgolfgolf
vimvimvimvimvim
vimvimvimvimgolf
vimvimvimgolfvim
vimvimvimgolfgolf
vimvimgolfvimvim
vimvimgolfvimgolf
vimvimgolfgolfvim
vimvimgolfgolfgolf
vimgolfvimvimvim
vimgolfvimvimgolf
vimgolfvimgolfvim
vimgolfvimgolfgolf
vimgolfgolfvimvim
vimgolfgolfvimgolf
vimgolfgolfgolfvim
vimgolfgolfgolfgolf
golfvimvimvimvim
golfvimvimvimgolf
golfvimvimgolfvim
golfvimvimgolfgolf
golfvimgolfvimvim
golfvimgolfvimgolf
golfvimgolfgolfvim
golfvimgolfgolfgolf
golfgolfvimvimvim
golfgolfvimvimgolf
golfgolfvimgolfvim
golfgolfvimgolfgolf
golfgolfgolfvimvim
golfgolfgolfvimgolf
golfgolfgolfgolfvim
golfgolfgolfgolfgolf
vimvimvimvimvimvim
vimvimvimvimvimgolf
vimvimvimvimgolfvim
vimvimvimvimgolfgolf
vimvimvimgolfvimvim
vimvimvimgolfvimgolf
vimvimvimgolfgolfvim
vimvimvimgolfgolfgolf
End file
yes
no
yes
no
no
no
yes
yes
no
no
no
no
no
no
yes
yes
yes
no
no
no
no
no
no
no
no
no
no
no
no
no
yes
yes
yes
no
yes
yes
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
yes
yes
yes
no
yes
yes
no
no

View Diff

1,70c1,70
< vim
< golf
< vimvim
< vimgolf
< golfvim
< golfgolf
< vimvimvim
< vimvimgolf
< vimgolfvim
< vimgolfgolf
< golfvimvim
< golfvimgolf
< golfgolfvim
< golfgolfgolf
< vimvimvimvim
< vimvimvimgolf
< vimvimgolfvim
< vimvimgolfgolf
< vimgolfvimvim
< vimgolfvimgolf
< vimgolfgolfvim
< vimgolfgolfgolf
< golfvimvimvim
< golfvimvimgolf
< golfvimgolfvim
< golfvimgolfgolf
< golfgolfvimvim
< golfgolfvimgolf
< golfgolfgolfvim
< golfgolfgolfgolf
< vimvimvimvimvim
< vimvimvimvimgolf
< vimvimvimgolfvim
< vimvimvimgolfgolf
< vimvimgolfvimvim
< vimvimgolfvimgolf
< vimvimgolfgolfvim
< vimvimgolfgolfgolf
< vimgolfvimvimvim
< vimgolfvimvimgolf
< vimgolfvimgolfvim
< vimgolfvimgolfgolf
< vimgolfgolfvimvim
< vimgolfgolfvimgolf
< vimgolfgolfgolfvim
< vimgolfgolfgolfgolf
< golfvimvimvimvim
< golfvimvimvimgolf
< golfvimvimgolfvim
< golfvimvimgolfgolf
< golfvimgolfvimvim
< golfvimgolfvimgolf
< golfvimgolfgolfvim
< golfvimgolfgolfgolf
< golfgolfvimvimvim
< golfgolfvimvimgolf
< golfgolfvimgolfvim
< golfgolfvimgolfgolf
< golfgolfgolfvimvim
< golfgolfgolfvimgolf
< golfgolfgolfgolfvim
< golfgolfgolfgolfgolf
< vimvimvimvimvimvim
< vimvimvimvimvimgolf
< vimvimvimvimgolfvim
< vimvimvimvimgolfgolf
< vimvimvimgolfvimvim
< vimvimvimgolfvimgolf
< vimvimvimgolfgolfvim
< vimvimvimgolfgolfgolf
---
> yes
> no
> yes
> no
> no
> no
> yes
> yes
> no
> no
> no
> no
> no
> no
> yes
> yes
> yes
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> yes
> yes
> yes
> no
> yes
> yes
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> no
> yes
> yes
> yes
> no
> yes
> yes
> no
> no

Solutions by @braxler:

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

9 active golfers, 37 entries

Solutions by @braxler:
37
#3 - John Braxler / @braxler

06/13/2019 at 12:40PM

38
#>6 - John Braxler / @braxler

06/13/2019 at 12:35PM

39
#>7 - John Braxler / @braxler

06/13/2019 at 12:32PM

40
#>7 - John Braxler / @braxler

06/13/2019 at 12:32PM

42
#>7 - John Braxler / @braxler

06/12/2019 at 09:15PM

42
#>7 - John Braxler / @braxler

06/12/2019 at 09:30PM

45
#>7 - John Braxler / @braxler

06/12/2019 at 09:13PM

47
#>8 - John Braxler / @braxler

06/12/2019 at 09:11PM

59
#>9 - John Braxler / @braxler

06/12/2019 at 07:24PM