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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 13 remaining solutions by signing in and submitting your own entry
#14 maharba6 / @maharba6 - Score: 238 - 05/06/24 @ 13:06
CG<Esc>cGforce a 0 @0<BS> 0<Esc>Yppkwrbjrc<Esc>kkVjjyjjjjpko<Esc>jkVjjjyjjjjjjjjjjjjjjjjjpjjjpjjjjjjjjpjjjjjjjjjpGpGpGo<CR>run 80<Esc>ggkkjjjjwwww1--jjjk$10<C-A>j.j.jkhhhhh<C-A>jjj<C-A>jjjj<C-A>j<C-A>jj<C-A>jjjj<C-A>jj<C-A>jj<C-A>j<C-A>jjj<C-A>j<C-A>j<C-A>llll70<C-A>k.k.kk60<C-A>k.k.kk50<C-A>k.k.kkkj40<C-A>k.k.kk30<C-A>k.k.kk20<C-A>k.k.ZZ

0 comments


Created by: @paulonhere

14 active golfers, 35 entries

Leaderboard (lowest score wins):
64
#1 - Danilo J. S. Bellini 🥊🇧🇷 / @danilobellini

04/09/2024 at 06:44PM

64
#2 - John Braxler / @braxler

04/09/2024 at 08:01PM

65
#3 - Aly Thobani / @alythobani

04/08/2024 at 01:22AM

80
#4 - Peppa Pig / @PeppaPi95550250

04/18/2024 at 04:10PM

81
#5 - Will-Hendrix / @Will-Hendrix

04/03/2024 at 06:39PM

85
#6 - MonkieeBoi / @MonkieeBoi

04/18/2024 at 12:24PM

88
#7 - kbrashem / @kbrashem

05/09/2024 at 10:09PM

103
#8 - Xiukun Hu / @xhu4

04/20/2024 at 11:50PM

140
#9 - John Kershaw / @johnkershaw

04/19/2024 at 11:08PM

143
#10 - slash-7 / @slash-7

05/28/2024 at 01:04PM

146
#11 - Tomek / @Madghostek

04/18/2024 at 05:16PM

164
#12 - Jelani Felix / @Jelanife

04/10/2024 at 04:46AM

222
#13 - dennis / @nagolove

04/25/2024 at 01:06PM

238
#14 - maharba6 / @maharba6

05/06/2024 at 01:06PM