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 160 remaining solutions by signing in and submitting your own entry
#161 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_

161 active golfers, 362 entries

Leaderboard (lowest score wins):
14
#61 - Lari / @larifariman

12/28/2012 at 12:43AM

14
#62 - Alec Goebel / @zego5360

01/04/2013 at 09:09AM

14
#63 - Alexander Borysov / @ab99c5e2

01/16/2013 at 05:18AM

14
#64 - martha / @hellomartha

01/17/2013 at 02:57PM

14
#65 - Radosław Majewski / @radomaj

01/22/2013 at 03:53PM

14
#66 - Marcin Radomski / @_dextero

01/22/2013 at 05:25PM

14
#67 - N / @nymph192

02/11/2013 at 07:51PM

14
#68 - Steven Herbst / @transistorman

02/25/2013 at 12:50AM

14
#69 - Jason Graham / @jason__graham

03/03/2013 at 12:26AM

14
#70 - Tyler / @tylerbindon

04/03/2013 at 04:56AM

14
#71 - David Yan / @david_yan

04/18/2013 at 08:02PM

14
#72 - jonlorusso / @jonlorusso

04/26/2013 at 08:56PM

14
#73 - Piotr Śniegowski / @PiotrSniegowski

06/06/2013 at 01:54PM

14
#74 - Shoop Da Whoop / @ShoopDaWhoop8

06/06/2013 at 08:56PM

14
#75 - rcmdnk / @rcmdnk

06/11/2013 at 08:57AM

14
#76 - James / @Dronak

07/25/2013 at 02:17AM

14
#77 - A / @Tower_1980

08/02/2013 at 12:01PM

14
#78 - Chris Brown / @engineercyb

08/06/2013 at 11:42PM

14
#79 - Arturo Escaip / @arturoescaip

09/01/2013 at 08:06AM

14
#80 - Oliver Christ / @0liverChrist

10/04/2013 at 02:53PM

14
#81 - US Dollar Price / @USDollarPrice

11/04/2013 at 10:06PM

14
#82 - sockdude1 / @sockdude1

11/05/2013 at 06:30AM

14
#83 - Stefan Schmidt / @stafue

12/06/2013 at 03:40PM

14
#84 - Zach Kemp / @zvksf

12/24/2013 at 05:34AM

14
#85 - Quota / @Quotad

02/11/2014 at 09:58AM

14
#86 - Joonas Pihlajamaa / @jokkebk

02/25/2014 at 02:35PM

14
#87 - Felipe Jaramillo F / @mrfelipe

04/04/2014 at 04:16AM

14
#88 - ZorgroZ / @ZorgroZ

04/11/2014 at 10:00PM

14
#89 - Brian / @wyantb_reader

06/26/2014 at 02:26AM

14
#90 - RobertT / @techrt2050

07/22/2014 at 04:20PM