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

168 active golfers, 377 entries

Leaderboard (lowest score wins):
14
#91 - Brian / @wyantb_reader

06/26/2014 at 02:26AM

14
#92 - RobertT / @techrt2050

07/22/2014 at 04:20PM

14
#93 - Leonardo Pistone / @lepistone

08/07/2014 at 08:00PM

14
#94 - LC / @leeren

08/10/2014 at 01:46AM

14
#95 - James T. Huggett / @Jmeshka

09/03/2014 at 08:07AM

14
#96 - Michael Comerford / @MComerford1

09/25/2014 at 02:00PM

14
#97 - Mauro Persano / @fzort

11/22/2014 at 12:57AM

14
#98 - William Ott / @oddalot

04/15/2015 at 10:18PM

14
#99 - ltn614 / @ltn614

09/25/2015 at 07:46AM

14
#100 - Jon Krause / @jkrause314

12/11/2015 at 08:21PM

14
#101 - Cristian Lupașcu / @clupasq

02/21/2016 at 01:37PM

14
#102 - И К / @igorjan94

09/15/2016 at 10:58AM

14
#103 - Kyouma / @kyoumaJohn

10/15/2016 at 01:13PM

14
#104 - 20speedvegan / @ashkevinm

04/13/2017 at 02:09PM

14
#105 - el pollo diablo / @bjagojevich

06/19/2017 at 04:08PM

14
#106 - Brandon Blakeley / @zkelvin

11/25/2017 at 05:23AM

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

07/28/2018 at 09:32PM

14
#108 - Arijus / @argshook

09/14/2018 at 11:14AM

14
#109 - timonegk / @timonegk

12/12/2018 at 11:26PM

14
#110 - Bart Kleijngeld / @BartKleijngeld

12/24/2018 at 11:26PM

14
#111 - Nick Yeow / @nickyeow

05/23/2019 at 11:46AM

14
#112 - Johannes Riecken / @rubystallion

01/15/2020 at 08:13PM

14
#113 - RockerZZY / @rocker_zzy

06/18/2020 at 02:11AM

14
#114 - int@紅ぽよ / @int_cl

08/10/2020 at 11:44AM

15
#115 - David Barnett / @mu_mind

11/23/2012 at 08:19PM

15
#116 - mhb / @mhbvim

11/25/2012 at 07:40AM

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

11/25/2012 at 11:02AM

15
#118 - George / @banditaras

11/25/2012 at 09:06PM

15
#119 - Eric Andres / @eric_m_andres

12/04/2012 at 10:53PM

15
#120 - Ben / @ben_g_thomas

01/06/2013 at 01:45AM