Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Leaderboard, Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 50af864132b7ed0002000075

A simple change

Just change the numbers in the most efficient way ...

Start file
1024 2048 3072 4096 5120
6144 7168 8192 9216
End file
2048 3072 4096 5120 6144
7168 8192 9216 10240

View Diff

1,2c1,2
< 1024 2048 3072 4096 5120
< 6144 7168 8192 9216
---
> 2048 3072 4096 5120 6144
> 7168 8192 9216 10240

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 99 remaining solutions by signing in and submitting your own entry
#100 Ryan Patterson / @CGamesPlay - Score: 16 - 12/28/12 @ 20:15
dWJEa<CR><Esc>A <C-R>-<BS>0<Esc>ZZ

0 comments

#101 Tetsuya Matsuyama / @m_tetsuya - Score: 16 - 12/30/12 @ 13:11
dw$Jelr<CR>A <Esc>pr0ZZ

0 comments

#102 jared miller / @jared_vim - Score: 16 - 03/02/13 @ 23:28
dwJA 0<Esc>PxF7hr<CR>ZZ

0 comments

#103 Jordan Owens / @signalhandler - Score: 16 - 12/09/13 @ 18:28
dwJf i<CR><Esc>A <Esc>pr0ZZ

0 comments

#104 Arun / @UArunKumar - Score: 17 - 12/04/12 @ 20:31
dwJf i<CR><Esc>A <C-R>-<BS>0<Esc>ZZ

0 comments

#105 Bart of Denver / @bartofdenver - Score: 17 - 08/13/13 @ 02:18
dwJf i<CR><C-O>$ <C-R>"<BS>0<Esc>ZZ

0 comments

#106 engy / @engydmw - Score: 17 - 09/24/13 @ 21:33
dwJf r<CR>A 10240<Esc>ZZ

0 comments

#107 Phil / @ischi - Score: 18 - 12/10/12 @ 08:29
dwJf r<CR>$pr04hi <Esc>ZZ

0 comments

#108 Fontaine Kévin / @DotSlash974 - Score: 18 - 08/31/13 @ 17:14
dwJf r<CR>$pr0F1i <Esc>ZZ

0 comments

#109 Scott Myц / @ScottMuc - Score: 19 - 04/25/13 @ 06:27
"adwJEa<CR><Esc>A <Esc>pa<BS>0<Esc>ZZ

0 comments

#110 charadeyouare / @charadeyouare - Score: 20 - 05/28/13 @ 21:36
jf s<CR><Esc>kkdwJja <Esc>pr0ZZ

0 comments

#111 Ravi S Sinha / @ambidextrousTx - Score: 21 - 11/23/12 @ 17:06
daWjA <C-R>"<BS>0<Esc>kJwwi<BS><CR><Esc>ZZ

0 comments

#112 Mattia Gheda / @ghedamat - Score: 22 - 11/23/12 @ 23:36
dwJeli<CR><Esc>$a <Esc>pi0<Esc>lx:wq<CR>

0 comments

#113 Joshua Travis / @jktravis - Score: 22 - 11/24/12 @ 19:26
dwjA <Esc>pA<BS>0<Esc>0dwkA <Esc>pxZZ

0 comments

#114 Peter Esselius / @esselius - Score: 22 - 02/19/13 @ 16:26
dwJeli<CR><Esc>$a <Esc>pi0<Esc>lx:wq<CR>

0 comments

#115 Bjorn / @bjorn_248 - Score: 22 - 11/15/13 @ 19:58
qqcw<C-R>=<C-R>"+1024<CR><Esc>wq8@qZZ

0 comments

#116 Tj / @yrddy - Score: 23 - 08/19/14 @ 11:50
qacw<C-R>=<C-R>"+1024<CR><C-C><C-C>wq8@aZZ

0 comments

#117 Asenar / @asenar - Score: 24 - 11/25/12 @ 14:36
cw<Del><Esc>A<Del> <Esc>wwi<BS><CR><Esc>A <Esc>pA0<Esc><End>ZZ

0 comments

#118 A R / @arusso23 - Score: 24 - 12/22/12 @ 08:28
dawjA <Esc>pr0^dawkA <Esc>px:wq<CR>

0 comments

#119 Pradeep Kumar / @pradeep6kumar - Score: 28 - 12/10/12 @ 16:03
dawjA <Esc>pi0<Esc>lx^dawkA <Esc>p<Esc>x:wq<CR>

0 comments

#120 Sebastian Heil / @sebokopter - Score: 34 - 11/23/12 @ 21:59
qq<C-A>uuuuuuqqq1024q<C-A>uuqq1024<C-A>wq8@qZZ

0 comments

#121 FocusandBlur / @focusandblur - Score: 41 - 03/23/14 @ 20:51
dwggG$a <Esc>pa0<BS><BS>0<Esc>llkj^dwk$a <Esc>pdl<Esc>;wq<CR><Esc>:wq<CR>

0 comments

#122 Charlene Tshos / @charlymul - Score: 43 - 04/10/13 @ 08:12
JE<CR><Right><CR>i<CR><Esc><Up>5xj$a<Esc>pi0<Left><Left><Left><Left><Left> <Right><Right><Right><Right><Right><Esc><Right>x<Up><Right><Right><Right><Right><Right><Esc>:wq<CR>

0 comments

#123 최용철 Charles Choi / @cycorld - Score: 169 - 04/06/13 @ 15:17
lllllllllllllllllllllllllllllllhhhhhhhhhhhhhhhhhhhhhhhhhhhvllldj$pi<Right>0<Left><Left><Left><Left><Left> <Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><Down><Esc>v<Right><Right><Right>d<Up><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>a<Esc><Right>p<Left><Left><Left>i <Down><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><Esc>:wq<CR>

0 comments

#124 Ben Ogorek / @baogorek - Score: 308 - 04/11/13 @ 17:29
<C-A><C-A><C-X><C-X>:function mut<BS>ltByTwo (x)<CR><BS><BS>:MultBy<BS><BS><BS><BS><BS><BS><BS><BS><BS>:Function<BS><BS><BS><BS><BS><BS><BS><BS>function MultByTwo (x)<CR>return 2*x<CR><BS>endfunction<CR>:Muy<BS>ltByTwo<CR>:"<BS>call MultByTwo<CR><Up>:call MultByTwo(1025<BS>4)<CR><CR>i2048<Esc>x<Left><Left><Left>xxxxxxxx<Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right> hlkllllllllllllllllllllli <BS>;<BS><Esc>wbei <BS><Esc>eo<BS> 6144<Esc>jhhhhhhhhhhhhhhhhhhxxxxxllllllllllllllllo<BS> 10240<Esc>:x<CR>

0 comments

Created by: @coot_

124 active golfers, 267 entries

Leaderboard (lowest score wins):
12
#1 - Marcin Sza / @coot_

11/23/2012 at 03:20PM

12
#2 - Kerson Hsiao / @KersonHsiao

11/23/2012 at 04:52PM

12
#3 - Tim Chase / @gumnos

11/23/2012 at 05:07PM

12
#4 - Conner McDaniel / @connermcd

11/23/2012 at 08:37PM

12
#5 - Urtica dioica / @udioica

11/23/2012 at 09:20PM

12
#6 - marmelad / @jordgubbssylt

11/25/2012 at 12:34AM

12
#7 - Jordan Eldredge / @captbaritone

12/01/2012 at 08:37AM

12
#8 - Daniel Baldwin / @danielcbaldwin

12/26/2012 at 06:57PM

12
#9 - Tony Locke / @t_locke

01/01/2013 at 02:25PM

12
#10 - Trevor Powell / @DoomedBunnies

03/20/2013 at 02:09AM

12
#11 - Chase Stubblefield / @sterlingchase

04/30/2013 at 08:46AM

12
#12 - Petro Тrouq / @zulolosi

05/11/2013 at 10:34PM

12
#13 - Marco Hinz / @_mhinz_

05/15/2013 at 06:19PM

12
#14 - Bradd Szonye / @bszonye

07/13/2013 at 01:11PM

12
#15 - Ingo / @ist3fani

07/31/2013 at 09:06AM

12
#16 - brett / @brettyukich

09/22/2013 at 04:30AM

12
#17 - Yann Moisan / @YannMoisan

01/03/2014 at 08:43PM

12
#18 - Romain Knezevic / @rkjdid

01/19/2014 at 12:33AM

12
#19 - Ben Lambeth / @azy2_ben

02/13/2014 at 07:10PM

12
#20 - Xelrifos / @Xelrifos

02/21/2014 at 06:44PM

12
#21 - kiho choi / @ArtStandAlone

04/13/2014 at 11:35PM

12
#22 - John Braxler / @braxler

04/17/2014 at 11:54AM

12
#23 - Caek / @Caek_

09/10/2014 at 01:11AM

12
#24 - Johannes H. / @neVexa

09/23/2014 at 03:58PM

12
#25 - Roger Spencer / @RojSpencer

03/12/2015 at 11:08PM

14
#26 - a24f0600 / @a24f0600

11/23/2012 at 02:27PM

14
#27 - h_east (DDD ready) / @h_east

11/23/2012 at 02:49PM

14
#28 - Pawel Obrok / @mrYapee

11/23/2012 at 07:31PM

14
#29 - SpiroX / @SpiroX

11/23/2012 at 07:47PM

14
#30 - Pete Johns / @johnsyweb

11/23/2012 at 09:12PM

14
#31 - Aniket Schneider / @shaydwyrm

11/24/2012 at 01:45AM

14
#32 - Mattiassich Ákos / @mattiassicha

11/24/2012 at 12:34PM

14
#33 - Max Sherman / @johnislarry

11/25/2012 at 09:32AM

14
#34 - Nathan / @boysetsfrog

11/25/2012 at 12:47PM

14
#35 - Vasil Sakarov / @vsakarov

11/25/2012 at 09:07PM

14
#36 - Oh fear / @ohfear_num

11/25/2012 at 11:40PM

14
#37 - Daniel Lundin / @danielundin

11/26/2012 at 08:34AM

14
#38 - Chris / @ciwchris

11/27/2012 at 04:23AM

14
#39 - taylorka / @taylorka

11/30/2012 at 04:19PM

14
#40 - Michael / @mjs2600

12/02/2012 at 08:38PM

14
#41 - DR / @dde81

12/04/2012 at 02:40AM

14
#42 - jDeveloper / @jDevEE

12/04/2012 at 09:55PM

14
#43 - Ray Lehtiniemi / @rayll

12/09/2012 at 11:05AM

14
#44 - Kudryavtsev Alexandr / @kudryav_a

12/11/2012 at 07:22PM

14
#45 - Édouard M'tou / @DouardM

12/19/2012 at 08:04PM

14
#46 - Lari / @larifariman

12/28/2012 at 12:43AM

14
#47 - Alec Goebel / @zego5360

01/04/2013 at 09:09AM

14
#48 - Alexander Borysov / @ab99c5e2

01/16/2013 at 05:18AM

14
#49 - martha / @hellomartha

01/17/2013 at 02:57PM

14
#50 - Radosław Majewski / @radomaj

01/22/2013 at 03:53PM

14
#51 - Marcin Radomski / @_dextero

01/22/2013 at 05:25PM

14
#52 - N / @nymph192

02/11/2013 at 07:51PM

14
#53 - Steven Herbst / @transistorman

02/25/2013 at 12:50AM

14
#54 - Jason Graham / @jason__graham

03/03/2013 at 12:26AM

14
#55 - Tyler / @tylerbindon

04/03/2013 at 04:56AM

14
#56 - David Yan / @david_yan

04/18/2013 at 08:02PM

14
#57 - fake Jon Lorusso / @jonlorusso

04/26/2013 at 08:56PM

14
#58 - Piotr Śniegowski / @PiotrSniegowski

06/06/2013 at 01:54PM

14
#59 - Shoop Da Whoop / @ShoopDaWhoop8

06/06/2013 at 08:56PM

14
#60 - rcmdnk / @rcmdnk

06/11/2013 at 08:57AM

14
#61 - James / @Dronak

07/25/2013 at 02:17AM

14
#62 - A / @Tower_1980

08/02/2013 at 12:01PM

14
#63 - Chris Brown / @engineercyb

08/06/2013 at 11:42PM

14
#64 - Arturo Escaip / @arturoescaip

09/01/2013 at 08:06AM

14
#65 - Oliver Christ / @0liverChrist

10/04/2013 at 02:53PM

14
#66 - US Dollar Price / @USDollarPrice

11/04/2013 at 10:06PM

14
#67 - Michael C / @sockdude1

11/05/2013 at 06:30AM

14
#68 - Stefan Schmidt / @stafue

12/06/2013 at 03:40PM

14
#69 - Zach Kemp / @zvksf

12/24/2013 at 05:34AM

14
#70 - Quota / @Quotad

02/11/2014 at 09:58AM

14
#71 - Joonas Pihlajamaa / @jokkebk

02/25/2014 at 02:35PM

14
#72 - Felipe Jaramillo F / @mrfelipe

04/04/2014 at 04:16AM

14
#73 - ZorgroZ / @ZorgroZ

04/11/2014 at 10:00PM

14
#74 - Brian / @wyantb_reader

06/26/2014 at 02:26AM

14
#75 - RobertT / @techrt2050

07/22/2014 at 04:20PM

14
#76 - Leonardo Pistone / @lepistone

08/07/2014 at 08:00PM

14
#77 - Leeren / @Leeren

08/10/2014 at 01:46AM

14
#78 - James T. Huggett / @Jmeshka

09/03/2014 at 08:07AM

14
#79 - Michael Comerford / @MComerford1

09/25/2014 at 02:00PM

14
#80 - Mauro Persano / @fzort

11/22/2014 at 12:57AM

15
#81 - David Barnett / @mu_mind

11/23/2012 at 08:19PM

15
#82 - mhb / @mhbvim

11/25/2012 at 07:40AM

15
#83 - 無ん垢の叫び / @john_ababa

11/25/2012 at 11:02AM

15
#84 - George / @banditaras

11/25/2012 at 09:06PM

15
#85 - Eric Andres / @eric_m_andres

12/04/2012 at 10:53PM

15
#86 - Benjamin Thomas / @PryFlack

01/06/2013 at 01:45AM

15
#87 - CY / @wongcy0

01/28/2013 at 06:17AM

15
#88 - mnx / @mnxx

02/06/2013 at 09:59AM

15
#89 - Addisu Taddese / @azeey

03/02/2013 at 05:58PM

15
#90 - cj / @cj01101

08/13/2013 at 04:07AM

15
#91 - Hachez Floran / @FloranHachez

09/05/2013 at 11:52AM

15
#92 - Martin Barney / @MartinBarney

05/05/2014 at 03:32AM

15
#93 - Dmitriy / @_dpy_

08/21/2014 at 08:45PM

16
#94 - Hubba / @HubbaBubbaFett

11/23/2012 at 07:45PM

16
#95 - Vincent Riquer / @ScriptFanix

11/24/2012 at 01:58AM

16
#96 - HiTECNOLOGYs / @HiTECNOLOGYs

11/27/2012 at 05:25PM

16
#97 - Ming Liu / @vmliu

11/28/2012 at 09:34PM

16
#98 - Steven Ngo / @sngo82

11/28/2012 at 09:41PM

16
#99 - Lance Levine / @LanceSMLevine

12/01/2012 at 09:20AM

16
#100 - Ryan Patterson / @CGamesPlay

12/28/2012 at 08:15PM

16
#101 - Tetsuya Matsuyama / @m_tetsuya

12/30/2012 at 01:11PM

16
#102 - jared miller / @jared_vim

03/02/2013 at 11:28PM

16
#103 - Jordan Owens / @signalhandler

12/09/2013 at 06:28PM

17
#104 - Arun / @UArunKumar

12/04/2012 at 08:31PM

17
#105 - Bart of Denver / @bartofdenver

08/13/2013 at 02:18AM

17
#106 - engy / @engydmw

09/24/2013 at 09:33PM

18
#107 - Phil / @ischi

12/10/2012 at 08:29AM

18
#108 - Fontaine Kévin / @DotSlash974

08/31/2013 at 05:14PM

19
#109 - Scott Myц / @ScottMuc

04/25/2013 at 06:27AM

20
#110 - charadeyouare / @charadeyouare

05/28/2013 at 09:36PM

21
#111 - Ravi S Sinha / @ambidextrousTx

11/23/2012 at 05:06PM

22
#112 - Mattia Gheda / @ghedamat

11/23/2012 at 11:36PM

22
#113 - Joshua Travis / @jktravis

11/24/2012 at 07:26PM

22
#114 - Peter Esselius / @esselius

02/19/2013 at 04:26PM

22
#115 - Bjorn / @bjorn_248

11/15/2013 at 07:58PM

23
#116 - Tj / @yrddy

08/19/2014 at 11:50AM

24
#117 - Asenar / @asenar

11/25/2012 at 02:36PM

24
#118 - A R / @arusso23

12/22/2012 at 08:28AM

28
#119 - Pradeep Kumar / @pradeep6kumar

12/10/2012 at 04:03PM

34
#120 - Sebastian Heil / @sebokopter

11/23/2012 at 09:59PM

41
#121 - FocusandBlur / @focusandblur

03/23/2014 at 08:51PM

43
#122 - Charlene Tshos / @charlymul

04/10/2013 at 08:12AM

169
#123 - 최용철 Charles Choi / @cycorld

04/06/2013 at 03:17PM

308
#124 - Ben Ogorek / @baogorek

04/11/2013 at 05:29PM