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 549fc5c05874e9000220eb54

Binary and Increment

Some numbers fun: not only increasing numbers but also increasing binary.

Start file
3'b000: clk_out = clk_in0;
3'b000: clk_out = clk_in0;
3'b000: clk_out = clk_in0;
3'b000: clk_out = clk_in0;
3'b000: clk_out = clk_in0;
3'b000: clk_out = clk_in0;
3'b000: clk_out = clk_in0;
3'b000: clk_out = clk_in0;
End file
3'b000: clk_out = clk_in1;
3'b001: clk_out = clk_in2;
3'b010: clk_out = clk_in3;
3'b011: clk_out = clk_in4;
3'b100: clk_out = clk_in5;
3'b101: clk_out = clk_in6;
3'b110: clk_out = clk_in7;
3'b111: clk_out = clk_in8;

View Diff

1,8c1,8
< 3'b000: clk_out = clk_in0;
< 3'b000: clk_out = clk_in0;
< 3'b000: clk_out = clk_in0;
< 3'b000: clk_out = clk_in0;
< 3'b000: clk_out = clk_in0;
< 3'b000: clk_out = clk_in0;
< 3'b000: clk_out = clk_in0;
< 3'b000: clk_out = clk_in0;
---
> 3'b000: clk_out = clk_in1;
> 3'b001: clk_out = clk_in2;
> 3'b010: clk_out = clk_in3;
> 3'b011: clk_out = clk_in4;
> 3'b100: clk_out = clk_in5;
> 3'b101: clk_out = clk_in6;
> 3'b110: clk_out = clk_in7;
> 3'b111: clk_out = clk_in8;

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 19 remaining solutions by signing in and submitting your own entry
#20 Oliver Christ / @0liverChrist - Score: 71 - 02/16/15 @ 13:10
lllll<C-V>jjjc1<Esc>jjh<C-V>jjjc1<Esc>kh<C-V>jc1<Esc>jjjj<C-V>jc1<Esc>:sor<CR>f=<C-A>j<C-A><C-A>j3<C-A>j4<C-A>j5<C-A>j6<C-A>j<C-R><Esc>7<C-A>jr8ZZ

0 comments


Created by: @YGoncho

20 active golfers, 56 entries

Leaderboard (lowest score wins):
22
#1 - John Braxler / @braxler

06/19/2019 at 04:07PM

22
#2 - Peppa Pig / @PeppaPi95550250

05/30/2024 at 03:43AM

23
#3 - Jon Krause / @jkrause314

01/19/2016 at 03:27AM

23
#4 - Timur Celik / @clktmr

12/22/2018 at 12:12AM

24
#5 - Urtica dioica / @udioica

12/30/2014 at 09:08AM

24
#6 - Petro Тrouq / @zulolosi

01/03/2015 at 07:51PM

24
#7 - Jake Eskel / @JakeEskel

01/04/2015 at 03:51PM

25
#8 - Carlos López / @morrizon

01/27/2015 at 12:03PM

25
#9 - Janzen / @__Coos

09/30/2022 at 02:22PM

28
#10 - Jordana Lachow / @TomofBedlam

01/04/2015 at 03:49PM

28
#11 - Pablo Acuna / @pacuna

11/17/2024 at 02:06AM

32
#12 - mnx / @mnxx

01/02/2015 at 09:56AM

39
#13 - James / @Dronak

12/09/2022 at 08:39PM

39
#14 - nickGPT / @nickandbro

08/28/2024 at 04:43AM

40
#15 - Carlos A Henríquez Q / @lagunex

01/17/2015 at 02:22PM

41
#16 - Matt / @mcr05

12/29/2014 at 08:44PM

50
#17 - pftb12345 / @pftb12345

04/13/2015 at 02:11PM

51
#18 - PCS Solutions / @PeteSolutions

08/16/2018 at 06:24PM

53
#19 - Paul / @paxlzi

01/02/2015 at 07:12PM

71
#20 - Oliver Christ / @0liverChrist

02/16/2015 at 01:10PM