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 192 remaining solutions by signing in and submitting your own entry
#193 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: @me_coot

193 active golfers, 468 entries

Leaderboard (lowest score wins):
12
#1 - Marcin Szamotulski / @me_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