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):
14
#61 - Mattiassich Ákos / @mattiassicha

11/24/2012 at 12:34PM

14
#62 - Max Sherman / @johnislarry

11/25/2012 at 09:32AM

14
#63 - Nathan / @boysetsfrog

11/25/2012 at 12:47PM

14
#64 - Vasil Sakarov / @vsakarov

11/25/2012 at 09:07PM

14
#65 - Oh fear / @ohfear_num

11/25/2012 at 11:40PM

14
#66 - Daniel Lundin / @danielundin

11/26/2012 at 08:34AM

14
#67 - Chris / @ciwchris

11/27/2012 at 04:23AM

14
#68 - taylorka / @taylorka

11/30/2012 at 04:19PM

14
#69 - Michael / @mjs2600

12/02/2012 at 08:38PM

14
#70 - DR / @dde81

12/04/2012 at 02:40AM

14
#71 - jDeveloper / @jDevEE

12/04/2012 at 09:55PM

14
#72 - Ray Lehtiniemi / @rayll

12/09/2012 at 11:05AM

14
#73 - Kudryavtsev Alexandr / @kudryav_a

12/11/2012 at 07:22PM

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

12/19/2012 at 08:04PM

14
#75 - Lari / @larifariman

12/28/2012 at 12:43AM

14
#76 - Alec Goebel / @zego5360

01/04/2013 at 09:09AM

14
#77 - Alexander Borysov / @ab99c5e2

01/16/2013 at 05:18AM

14
#78 - martha / @hellomartha

01/17/2013 at 02:57PM

14
#79 - Radosław Majewski / @radomaj

01/22/2013 at 03:53PM

14
#80 - Marcin Radomski / @_dextero

01/22/2013 at 05:25PM

14
#81 - N / @nymph192

02/11/2013 at 07:51PM

14
#82 - Steven Herbst / @transistorman

02/25/2013 at 12:50AM

14
#83 - Jason Graham / @jason__graham

03/03/2013 at 12:26AM

14
#84 - Tyler / @tylerbindon

04/03/2013 at 04:56AM

14
#85 - David Yan / @david_yan

04/18/2013 at 08:02PM

14
#86 - jonlorusso / @jonlorusso

04/26/2013 at 08:56PM

14
#87 - Piotr Śniegowski / @PiotrSniegowski

06/06/2013 at 01:54PM

14
#88 - Shoop Da Whoop / @ShoopDaWhoop8

06/06/2013 at 08:56PM

14
#89 - rcmdnk / @rcmdnk

06/11/2013 at 08:57AM

14
#90 - James / @Dronak

07/25/2013 at 02:17AM