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 16 remaining solutions by signing in and submitting your own entry
#17 dennis / @nagolove - Score: 222 - 04/25/24 @ 13:06
jqjiforce a <fd-6b>llcw b <fd-6b>llcw c <fd-6b>llDA @ 0<fd-6b>bbhhhi @ 0<fd-6b>bbbi@ 0 <BS><CR>force <fd-6b>wwwwwi<BS><CR>force <fd-6b>j0q@j@j@j@j@j@j@j1GddqjjjjO<fd-6b>jq@j@j@j@J@j@j1G$5G$i1<fd-6b>j.j.9G$i2j<BS><fd-6b>ji2<fd-6b>j.13J<fd-6b>u13G$i3<fd-6b>j.j.jji4<fd-6b>j.j.jji5<fd-6b>j.j.jji6<fd-6b>j.j.<fd-6b>jji7<fd-6b>j.j.o<CR>rin <BS><BS><BS>un 80<fd-6b>:wq<CR>

0 comments


Created by: @paulonhere

17 active golfers, 58 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

64
#3 - Peppa Pig / @PeppaPi95550250

07/11/2024 at 03:27AM

64
#4 - nickGPT / @nickandbro

08/23/2024 at 05:26AM

65
#5 - Aly Thobani / @alythobani

04/08/2024 at 01:22AM

65
#6 - nightgather / @nightgather

06/07/2024 at 10:49AM

81
#7 - Will-Hendrix / @Will-Hendrix

04/03/2024 at 06:39PM

85
#8 - MonkieeBoi / @MonkieeBoi

04/18/2024 at 12:24PM

88
#9 - kbrashem / @kbrashem

05/09/2024 at 10:09PM

103
#10 - Xiukun Hu / @xhu4

04/20/2024 at 11:50PM

103
#11 - slash-7 / @slash-7

05/31/2024 at 12:53PM

117
#12 - Giacomo Sansone / @pcineverdies

06/24/2024 at 08:27PM

140
#13 - John Kershaw / @johnkershaw

04/19/2024 at 11:08PM

146
#14 - Tomek / @Madghostek

04/18/2024 at 05:16PM

164
#15 - Jelani Felix / @Jelanife

04/10/2024 at 04:46AM

218
#16 - rekicc / @rekicc

10/03/2024 at 01:40PM

222
#17 - dennis / @nagolove

04/25/2024 at 01:06PM