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 by @GavinKoeng:

Unlock 11 remaining solutions by signing in and submitting your own entry
Created by: @YGoncho

21 active golfers, 67 entries

Solutions by @GavinKoeng:
22
#3 - Gavin / @GavinKoeng

04/21/2026 at 11:22PM

23
#>5 - Gavin / @GavinKoeng

04/21/2026 at 11:21PM

24
#>8 - Gavin / @GavinKoeng

04/21/2026 at 11:20PM

25
#>10 - Gavin / @GavinKoeng

04/21/2026 at 11:20PM

28
#>12 - Gavin / @GavinKoeng

04/21/2026 at 11:19PM

29
#>12 - Gavin / @GavinKoeng

04/21/2026 at 11:19PM

39
#>15 - Gavin / @GavinKoeng

04/21/2026 at 11:16PM

40
#>16 - Gavin / @GavinKoeng

04/21/2026 at 11:15PM

41
#>17 - Gavin / @GavinKoeng

04/21/2026 at 11:13PM

42
#>17 - Gavin / @GavinKoeng

04/21/2026 at 11:18PM

50
#>18 - Gavin / @GavinKoeng

04/21/2026 at 11:12PM