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 10 remaining solutions by signing in and submitting your own entry
#11 pftb12345 / pftb12345 - Score: 50 - 04/13/15 @ 14:11
6D<CR>w<C-A>VHyP4l2j<C-V>jr1jVHyP3l3jj<C-V>4jr1)hr8qq<C-V>yk<C-V>p<C-X>q6@qZZ

0 comments

#12 Paul / paxlzi - Score: 53 - 01/02/15 @ 19:12
7Dt;<C-A>qqYpt;<C-A>q6@q3kTb<C-V>3jr1kklr1j.3j.j.ggt:qqjr1jq3@qZZ

0 comments

#13 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

13 active golfers, 32 entries

Leaderboard (lowest score wins):
23
#1 - Jon Krause / jkrause314

01/19/2016 at 03:27AM

24
#2 - Urtica dioica / udioica

12/30/2014 at 09:08AM

24
#3 - John Braxler / braxler

12/30/2014 at 02:39PM

24
#4 - Petro Тrouq / zulolosi

01/03/2015 at 07:51PM

24
#5 - Jake Eskel / JakeEskel

01/04/2015 at 03:51PM

25
#6 - Carlos López / morrizon

01/27/2015 at 12:03PM

28
#7 - Jordana Lachow / TomofBedlam

01/04/2015 at 03:49PM

32
#8 - mnx / mnxx

01/02/2015 at 09:56AM

40
#9 - Carlos A Henríquez Q / lagunex

01/17/2015 at 02:22PM

41
#10 - Matthieu Crapet / mcr05

12/29/2014 at 08:44PM

50
#11 - pftb12345 / pftb12345

04/13/2015 at 02:11PM

53
#12 - Paul / paxlzi

01/02/2015 at 07:12PM

71
#13 - Oliver Christ / 0liverChrist

02/16/2015 at 01:10PM