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 9v00660ce706000000000267

Truth Table to ModelSim

Convert this truth table to simulator instructions!

Start file
A   B   C   Z
0   0   0   0
0   0   1   0
0   1   0   1
0   1   1   1
1   0   0   0
1   0   1   1
1   1   0   0
1   1   1   0
End file
force a 0 @ 0
force b 0 @ 0
force c 0 @ 0

force a 0 @ 10
force b 0 @ 10
force c 1 @ 10

force a 0 @ 20
force b 1 @ 20
force c 0 @ 20

force a 0 @ 30
force b 1 @ 30
force c 1 @ 30

force a 1 @ 40
force b 0 @ 40
force c 0 @ 40

force a 1 @ 50
force b 0 @ 50
force c 1 @ 50

force a 1 @ 60
force b 1 @ 60
force c 0 @ 60

force a 1 @ 70
force b 1 @ 70
force c 1 @ 70

run 80

View Diff

1,9c1,33
< A   B   C   Z
< 0   0   0   0
< 0   0   1   0
< 0   1   0   1
< 0   1   1   1
< 1   0   0   0
< 1   0   1   1
< 1   1   0   0
< 1   1   1   0
---
> force a 0 @ 0
> force b 0 @ 0
> force c 0 @ 0
> 
> force a 0 @ 10
> force b 0 @ 10
> force c 1 @ 10
> 
> force a 0 @ 20
> force b 1 @ 20
> force c 0 @ 20
> 
> force a 0 @ 30
> force b 1 @ 30
> force c 1 @ 30
> 
> force a 1 @ 40
> force b 0 @ 40
> force c 0 @ 40
> 
> force a 1 @ 50
> force b 0 @ 50
> force c 1 @ 50
> 
> force a 1 @ 60
> force b 1 @ 60
> force c 0 @ 60
> 
> force a 1 @ 70
> force b 1 @ 70
> force c 1 @ 70
> 
> run 80

Solutions by @Will-Hendrix:

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

15 active golfers, 44 entries

Solutions by @Will-Hendrix:
81
#6 - Will-Hendrix / @Will-Hendrix

04/03/2024 at 06:39PM

89
#>8 - Will-Hendrix / @Will-Hendrix

04/03/2024 at 06:20PM

90
#>8 - Will-Hendrix / @Will-Hendrix

04/03/2024 at 06:16PM

109
#>10 - Will-Hendrix / @Will-Hendrix

04/03/2024 at 06:00PM