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
#91 - Leonardo Pistone / @lepistone

08/07/2014 at 08:00PM

14
#92 - LC / @leeren

08/10/2014 at 01:46AM

14
#93 - James T. Huggett / @Jmeshka

09/03/2014 at 08:07AM

14
#94 - Michael Comerford / @MComerford1

09/25/2014 at 02:00PM

14
#95 - Mauro Persano / @fzort

11/22/2014 at 12:57AM

14
#96 - William Ott / @oddalot

04/15/2015 at 10:18PM

14
#97 - ltn614 / @ltn614

09/25/2015 at 07:46AM

14
#98 - Jon Krause / @jkrause314

12/11/2015 at 08:21PM

14
#99 - Cristian Lupașcu / @clupasq

02/21/2016 at 01:37PM

14
#100 - И К / @igorjan94

09/15/2016 at 10:58AM

14
#101 - Kyouma / @kyoumaJohn

10/15/2016 at 01:13PM

14
#102 - 20speedvegan / @ashkevinm

04/13/2017 at 02:09PM

14
#103 - el pollo diablo / @bjagojevich

06/19/2017 at 04:08PM

14
#104 - Brandon Blakeley / @zkelvin

11/25/2017 at 05:23AM

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

07/28/2018 at 09:32PM

14
#106 - Arijus / @argshook

09/14/2018 at 11:14AM

14
#107 - timonegk / @timonegk

12/12/2018 at 11:26PM

14
#108 - Bart Kleijngeld / @BartKleijngeld

12/24/2018 at 11:26PM

14
#109 - Nick Yeow / @nickyeow

05/23/2019 at 11:46AM

15
#110 - David Barnett / @mu_mind

11/23/2012 at 08:19PM

15
#111 - mhb / @mhbvim

11/25/2012 at 07:40AM

15
#112 - 無ん垢の叫び / @john_ababa

11/25/2012 at 11:02AM

15
#113 - George / @banditaras

11/25/2012 at 09:06PM

15
#114 - Eric Andres / @eric_m_andres

12/04/2012 at 10:53PM

15
#115 - Ben / @ben_g_thomas

01/06/2013 at 01:45AM

15
#116 - CY / @wongcy0

01/28/2013 at 06:17AM

15
#117 - mnx / @mnxx

02/06/2013 at 09:59AM

15
#118 - Addisu Taddese / @azeey

03/02/2013 at 05:58PM

15
#119 - cj / @cj01101

08/13/2013 at 04:07AM

15
#120 - Hachez Floran / @FloranHachez

09/05/2013 at 11:52AM