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

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

17 active golfers, 58 entries

Solutions by @Jelanife:
164
#15 - Jelani Felix / @Jelanife

04/10/2024 at 04:46AM