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
#91 - A / @Tower_1980

08/02/2013 at 12:01PM

14
#92 - Chris Brown / @engineercyb

08/06/2013 at 11:42PM

14
#93 - Arturo Escaip / @arturoescaip

09/01/2013 at 08:06AM

14
#94 - Oliver Christ / @0liverChrist

10/04/2013 at 02:53PM

14
#95 - US Dollar Price / @USDollarPrice

11/04/2013 at 10:06PM

14
#96 - sockdude1 / @sockdude1

11/05/2013 at 06:30AM

14
#97 - Stefan Schmidt / @stafue

12/06/2013 at 03:40PM

14
#98 - Zach Kemp / @zvksf

12/24/2013 at 05:34AM

14
#99 - Quota / @Quotad

02/11/2014 at 09:58AM

14
#100 - Joonas Pihlajamaa / @jokkebk

02/25/2014 at 02:35PM

14
#101 - Felipe Jaramillo F / @mrfelipe

04/04/2014 at 04:16AM

14
#102 - ZorgroZ / @ZorgroZ

04/11/2014 at 10:00PM

14
#103 - Brian / @wyantb_reader

06/26/2014 at 02:26AM

14
#104 - RobertT / @techrt2050

07/22/2014 at 04:20PM

14
#105 - Leonardo Pistone / @lepistone

08/07/2014 at 08:00PM

14
#106 - LC / @leeren

08/10/2014 at 01:46AM

14
#107 - James T. Huggett / @Jmeshka

09/03/2014 at 08:07AM

14
#108 - Michael Comerford / @MComerford1

09/25/2014 at 02:00PM

14
#109 - Mauro Persano / @fzort

11/22/2014 at 12:57AM

14
#110 - William Ott / @oddalot

04/15/2015 at 10:18PM

14
#111 - ltn614 / @ltn614

09/25/2015 at 07:46AM

14
#112 - Jon Krause / @jkrause314

12/11/2015 at 08:21PM

14
#113 - Cristian Lupașcu / @clupasq

02/21/2016 at 01:37PM

14
#114 - И К / @igorjan94

09/15/2016 at 10:58AM

14
#115 - Kyouma / @kyoumaJohn

10/15/2016 at 01:13PM

14
#116 - 20speedvegan / @ashkevinm

04/13/2017 at 02:09PM

14
#117 - el pollo diablo / @bjagojevich

06/19/2017 at 04:08PM

14
#118 - Brandon Blakeley / @zkelvin

11/25/2017 at 05:23AM

14
#119 - Daniël De Koker / @daniel_koker

07/28/2018 at 09:32PM

14
#120 - Arijus / @argshook

09/14/2018 at 11:14AM