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 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 122 remaining solutions by signing in and submitting your own entry
#123 Steven Ngo / sngo82 - Score: 16 - 11/28/12 @ 21:41
dw$Jelr<CR>A <Esc>pr0ZZ

0 comments


#124 Lance Levine / LanceSMLevine - Score: 16 - 12/01/12 @ 09:20
dwJf r<CR><End>a <Esc>pr0ZZ

0 comments


#125 Ryan Patterson / CGamesPlay - Score: 16 - 12/28/12 @ 20:15
dWJEa<CR><Esc>A <C-R>-<BS>0<Esc>ZZ

0 comments


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

0 comments


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

0 comments


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

0 comments


#129 Daniel / Daniel00288663 - Score: 16 - 04/04/17 @ 09:00
dwJelr<CR>A <C-R>"<BS>0<Esc>ZZ

0 comments


#130 jakeroberts / jakeroberts - Score: 16 - 05/28/17 @ 15:35
dwJA <Esc>pr020hr<CR>ZZ

0 comments


#131 Gurukandhamoorthi / Gurukandhamoor1 - Score: 16 - 08/04/17 @ 17:54
dwJf r<CR>A <C-R>"<BS>0<Esc>ZZ

0 comments


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

0 comments


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

0 comments


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

0 comments


#135 Luke Parsons / lukeparsons - Score: 17 - 12/21/17 @ 09:38
dw$Jelr<CR>A <Esc>pr0<Esc>ZZ

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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


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

0 comments


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

0 comments


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

0 comments


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


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


#152 최용철 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


#153 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_

153 active golfers, 343 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 - Chasetopher / chasetopherlee

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

12
#26 - Alexander Kazakov / volandkot

04/03/2015 at 01:54PM

12
#27 - pftb12345 / pftb12345

04/13/2015 at 12:11PM

12
#28 - David Nguyen / nguydavi

06/06/2015 at 04:40PM

12
#29 - Walker Boh / walker_boh

11/18/2015 at 09:35AM

12
#30 - Ralf Haffa / fatslo

02/27/2016 at 11:44PM