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

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

11 active golfers, 27 entries

Solutions by @danilobellini:
64
#1 - Danilo J. S. Bellini 🥊🇧🇷 / @danilobellini

04/09/2024 at 06:44PM

65
#>2 - Danilo J. S. Bellini 🥊🇧🇷 / @danilobellini

04/06/2024 at 06:49AM