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

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

17 active golfers, 58 entries

Solutions by @slash-7:
103
#11 - slash-7 / @slash-7

05/31/2024 at 12:53PM

106
#>11 - slash-7 / @slash-7

05/31/2024 at 12:51PM

120
#>12 - slash-7 / @slash-7

05/31/2024 at 12:02PM

127
#>12 - slash-7 / @slash-7

05/31/2024 at 11:55AM

143
#>13 - slash-7 / @slash-7

05/28/2024 at 01:04PM

147
#>14 - slash-7 / @slash-7

05/28/2024 at 01:02PM