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 50c2c246b0544c000200003f

Block Fun 1

Manipulate the columns to produce desired result.

Start file
01234567890123456789012345678901234567890123456789012345678901234567890123456789
1                                                                              0
2                                                                              1
3                                                                              2
4                                                                              3
5                                                                              4
6                                                                              5
7                                                                              6
8                                                                              7
9                                                                              8
01234567890123456789012345678901234567890123456789012345678901234567890123456789
End file
01234567890123456789012345678901234567890123456789012345678901234567890123456789
1        0         0         0         0         0         0         0         0
2        1         1         1         1         1         1         1         1
3        2         2         2         2         2         2         2         2
4        3         3         3         3         3         3         3         3
5        4         4         4         4         4         4         4         4
6        5         5         5         5         5         5         5         5
7        6         6         6         6         6         6         6         6
8        7         7         7         7         7         7         7         7
9        8         8         8         8         8         8         8         8
01234567890123456789012345678901234567890123456789012345678901234567890123456789

View Diff

2,10c2,10
< 1                                                                              0
< 2                                                                              1
< 3                                                                              2
< 4                                                                              3
< 5                                                                              4
< 6                                                                              5
< 7                                                                              6
< 8                                                                              7
< 9                                                                              8
---
> 1        0         0         0         0         0         0         0         0
> 2        1         1         1         1         1         1         1         1
> 3        2         2         2         2         2         2         2         2
> 4        3         3         3         3         3         3         3         3
> 5        4         4         4         4         4         4         4         4
> 6        5         5         5         5         5         5         5         5
> 7        6         6         6         6         6         6         6         6
> 8        7         7         7         7         7         7         7         7
> 9        8         8         8         8         8         8         8         8

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 52 remaining solutions by signing in and submitting your own entry
#53 James / Dronak - Score: 25 - 09/12/13 @ 15:37
<C-V>8j"ayf9qqj<C-V>8j"apk;q6@qZZ

0 comments

#54 ltn614 / ltn614 - Score: 25 - 10/09/15 @ 03:23
<C-V>9j"ayqqf9j<C-V>9j"apklq6@qZZ

0 comments

#55 Ben Hill / KaizenSoze70 - Score: 25 - 06/20/16 @ 12:32
<C-V>8jyf8jqqp9lq6@ql<C-V>8j6lxZZ

0 comments

#56 jk / kewnapse - Score: 26 - 12/23/12 @ 00:33
<C-V>8j"ayqbf9j"aPl<C-V>8jxkq6@bZZ

0 comments

#57 Robert Goeddel / f0rdpr3fect - Score: 26 - 11/11/15 @ 00:16
<C-V>8jyqqf8jpkq6@q$jh<C-V>8j6hxZZ

0 comments

#58 Oliver Christ / 0liverChrist - Score: 28 - 10/05/13 @ 21:56
<C-V>8jyj8lpqa9lpq6@aqalDjq8@aZZ

0 comments

#59 Cristian Lupașcu / clupasq - Score: 32 - 04/15/16 @ 20:21
l<C-V>G7f9xgvy$p$.$.$.$.$.$.2|<C-V>GlxZZ

0 comments

#60 Runar / runarfu - Score: 35 - 12/08/12 @ 09:56
$j<C-V>8jh"wy09l<C-V>8j"wpqq10l<C-V>8j"wpq5@qZZ

0 comments

#61 Devin Christensen / quixoten - Score: 38 - 12/13/12 @ 23:12
$j<C-V>jjjjjjjjyggqaf9jPkq8@aljl<C-V>$Gk$d:wq<CR>

0 comments

#62 pfl / pfl22 - Score: 47 - 12/08/12 @ 13:23
<C-V>8j"ayjqq10l<C-V>8j"apq5@q@q^^l<C-V>jjjjjjjjd$jhkp<Esc>:wq<CR>

0 comments

#63 Russ Adams / rustushki - Score: 51 - 12/11/12 @ 01:34
of9jr0"ay j8@k10k<Esc>0"jd$i<C-V><C-V>"aP<C-V><C-A>"ay j<Esc>0"kd$ddgg7@jZZ

0 comments

#64 Pradeep Kumar / pradeep6kumar - Score: 52 - 12/11/12 @ 05:26
$j<C-V>jjjjjjjjyggqaf9jPkq8@aljl<C-V>lllllllljjjjjjjjdgg:wq<CR>

0 comments

#65 Django Janny / keltroth - Score: 484 - 12/08/12 @ 14:37
:%s/[0-9<BS><BS><BS>1_<BS>-9]<Left><Left><Left><Left><Left>^<Right><Right><Right><Right><Right><Right><Left><Left><Left><Left><Left>\(<Right><Right><Right><Right><Right>\)/\1        1<BS>0<BS><BS><BS><BS><BS><BS><BS><BS><BS>        submatch(1 <BS>) + 1)<Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>(<End>/g<CR><Esc>u:<Up><Left><Left><Left><Right><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>)<Left>\1+1<CR><Esc>u:<Up><Left><Left><Left><Left><Left><Left>{<Right><Right><Right>}<Left><Left><BS>-<CR>:<Up><Down>u:<BS><CR>:<Up><Up><Left><Left><Left><BS><Left><Left><Left><BS><Right><Right><Right><Left><Left><Left><Left><Left><Right><BS><Right><Right><Right><Right><Right><BS><CR><Esc>u<Up><Down>:<Up><Home><Right><Right><Right><Del><Right><Right><Right><Right><Right><Right><Right><Right><Right>$<Right><Right><Left><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>^\(\).*<Left><Left><Left><Left>[0-9]<CR><Esc>u:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Del> <CR><Esc>u:1<CR>:<Up><Up><Home><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Left><Left><Left><Left><Left><Del>1<Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Del>0<Right><Right><Left><Del>8<Right><CR><Esc>u:<Up><Left><Left><Left><Right>\1        \2         \2<CR>u:<Up><Left><Left><Left><Left><BS><BS><BS><BS><BS><BS><BS><BS><BS><C-V><Tab><Left><Left><Left><BS><BS><BS><BS><BS><BS><BS><BS><C-V><Tab><Esc>:<BS>:<Up><CR>u:<Up><Up><Left><Left>         \2         \2         \2         \2         \2         \2<CR><CR><Esc>:w<CR>:q<CR>

0 comments

Created by: DiffJunk

65 active golfers, 158 entries

Leaderboard (lowest score wins):
14
#1 - Urtica dioica / udioica

12/08/2012 at 06:57AM

14
#2 - Marcin Sza / coot_

12/08/2012 at 10:22AM

14
#3 - Conner McDaniel / connermcd

12/08/2012 at 10:56PM

14
#4 - Ray Lehtiniemi / rayll

12/09/2012 at 06:39PM

14
#5 - Alec Goebel / zego5360

01/04/2013 at 08:12AM

14
#6 - Yi EungJun / semtlnori

01/04/2013 at 04:47PM

14
#7 - Petro Тrouq / zulolosi

02/20/2013 at 08:18PM

14
#8 - Julius Pfrommer / dlctr

03/03/2013 at 09:26AM

14
#9 - Trevor Powell / DoomedBunnies

04/11/2013 at 02:22AM

14
#10 - Marco Hinz / _mhinz_

05/26/2013 at 04:08PM

14
#11 - Bradd Szonye / bszonye

07/15/2013 at 03:19AM

14
#12 - John Braxler / braxler

05/18/2014 at 06:42PM

14
#13 - pftb12345 / pftb12345

04/22/2015 at 05:31AM

15
#14 - Kajetan Bojko / KajetanBojko

12/22/2012 at 06:27PM

16
#15 - Kerson Hsiao / KersonHsiao

12/11/2012 at 07:30AM

17
#16 - h_east (トロッコ6個) / h_east

12/23/2012 at 05:00PM

17
#17 - Tyler / tylerbindon

04/03/2013 at 02:42AM

19
#18 - a24f0600 / a24f0600

12/11/2012 at 03:13PM

19
#19 - Lieven Keersmaekers / LievenKeersmaek

12/15/2012 at 03:01PM

19
#20 - wushexu / wushexu

05/25/2013 at 11:50AM

19
#21 - US Dollar Price / USDollarPrice

11/06/2013 at 08:08AM

19
#22 - thasso / thasso23

11/17/2013 at 12:18PM

19
#23 - Hannes Remahl / hannesr

02/28/2014 at 11:25AM

19
#24 - Joonas Pihlajamaa / jokkebk

03/15/2014 at 11:14AM

20
#25 - Manuel Gómez / mgomezch

12/17/2012 at 09:59AM

20
#26 - Tesnorth / Tesnorth

12/18/2012 at 08:20PM

21
#27 - Adelar S. Queiróz / adelarsq

12/08/2012 at 04:02PM

21
#28 - 無ん垢の叫び / john_ababa

12/09/2012 at 11:36AM

21
#29 - Steve Tjoa / stevetjoa

02/03/2013 at 11:30PM

21
#30 - Kai Yuan / kentyuan

02/21/2013 at 09:45PM

21
#31 - Satoshi Kawasaki / hobbes3k

04/18/2013 at 05:52AM

22
#32 - Chris Maguire / chriswmaguire

12/12/2012 at 06:11PM

22
#33 - Dongwook Lee / nephilimz

01/06/2013 at 09:19AM

22
#34 - Asmund Liseth / Asmund_L

01/11/2013 at 08:48PM

22
#35 - curist / curist

07/09/2013 at 10:05AM

22
#36 - cj / cj01101

08/20/2013 at 10:49PM

22
#37 - Ram Tamtam / ramtamtamtam

07/02/2014 at 02:26PM

23
#38 - adi li / guessimtoolate

12/08/2012 at 11:28PM

23
#39 - brett / brettyukich

09/22/2013 at 09:52PM

23
#40 - Yann / yannstadnicki

03/02/2017 at 11:03PM

24
#41 - Hubba / HubbaBubbaFett

12/08/2012 at 03:47PM

24
#42 - Mac Heller-Ogden / twosoul

12/08/2012 at 11:32PM

24
#43 - Alex Shapovalov / shapov

12/14/2012 at 03:52AM

24
#44 - nozakikohei / taki_4416

12/14/2012 at 06:05AM

24
#45 - CY / wongcy0

01/27/2013 at 09:29AM

24
#46 - Bailey Ling / blingcoder

03/09/2013 at 04:25AM

24
#47 - Joshua Draper / JoshuaBDraper

05/25/2013 at 10:08PM

24
#48 - Aaron Bieber / aaronbieber

06/02/2013 at 11:09PM

24
#49 - Ryan Marcotte / ryanjmarcotte

11/11/2015 at 12:19AM

25
#50 - mhb / mhbvim

12/08/2012 at 06:03AM

25
#51 - うえっち / uh_tomo

12/13/2012 at 06:17PM

25
#52 - マーロウ / PhilllipMarlowe

03/27/2013 at 05:32AM

25
#53 - James / Dronak

09/12/2013 at 03:37PM

25
#54 - ltn614 / ltn614

10/09/2015 at 03:23AM

25
#55 - Ben Hill / KaizenSoze70

06/20/2016 at 12:32PM

26
#56 - jk / kewnapse

12/23/2012 at 12:33AM

26
#57 - Robert Goeddel / f0rdpr3fect

11/11/2015 at 12:16AM

28
#58 - Oliver Christ / 0liverChrist

10/05/2013 at 09:56PM

32
#59 - Cristian Lupașcu / clupasq

04/15/2016 at 08:21PM

35
#60 - Runar / runarfu

12/08/2012 at 09:56AM

38
#61 - Devin Christensen / quixoten

12/13/2012 at 11:12PM

47
#62 - pfl / pfl22

12/08/2012 at 01:23PM

51
#63 - Russ Adams / rustushki

12/11/2012 at 01:34AM

52
#64 - Pradeep Kumar / pradeep6kumar

12/11/2012 at 05:26AM

484
#65 - Django Janny / keltroth

12/08/2012 at 02:37PM