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
#121 - timonegk / @timonegk

12/12/2018 at 11:26PM

14
#122 - Bart Kleijngeld / @BartKleijngeld

12/24/2018 at 11:26PM

14
#123 - Nick Yeow / @nickyeow

05/23/2019 at 11:46AM

14
#124 - Johannes Riecken / @rubystallion

01/15/2020 at 08:13PM

14
#125 - RockerZZY / @rocker_zzy

06/18/2020 at 02:11AM

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

08/10/2020 at 11:44AM

14
#127 - tpoeiras / @tpoeirass

08/01/2021 at 03:57AM

14
#128 - blabla zincou / @BZincou

04/19/2022 at 11:16PM

14
#129 - Brandon / @Brandon10678836

08/31/2022 at 01:36PM

14
#130 - vimgolfaccfekxh / @vimgolfaccfekxh

10/20/2022 at 01:47PM

14
#131 - James Marshall / @astrophd

10/23/2022 at 01:26AM

14
#132 - Kanmuruuruu / @Kanmuruuruu

04/09/2024 at 07:54PM

14
#133 - Pa7shohG / @Pa7shohG

01/25/2025 at 05:12PM

14
#134 - 0xf00ff00f / @0xf00ff00f

02/09/2025 at 09:24PM

15
#135 - David Barnett / @mu_mind

11/23/2012 at 08:19PM

15
#136 - mhb / @mhbvim

11/25/2012 at 07:40AM

15
#137 - じょんあば / @john_ababa

11/25/2012 at 11:02AM

15
#138 - George / @banditaras

11/25/2012 at 09:06PM

15
#139 - Eric Andres / @eric_m_andres

12/04/2012 at 10:53PM

15
#140 - Ben / @ben_g_thomas

01/06/2013 at 01:45AM

15
#141 - CY / @wongcy0

01/28/2013 at 06:17AM

15
#142 - mnx / @mnxx

02/06/2013 at 09:59AM

15
#143 - Addisu Taddese / @azeey

03/02/2013 at 05:58PM

15
#144 - cj / @cj01101

08/13/2013 at 04:07AM

15
#145 - Hachez Floran / @FloranHachez

09/05/2013 at 11:52AM

15
#146 - Martin Barney / @MartinBarney

05/05/2014 at 03:32AM

15
#147 - Dmitriy / @_dpy_

08/21/2014 at 08:45PM

15
#148 - Elizabeth / @sprinkles418

04/14/2015 at 03:42PM

15
#149 - Ryan Dwyer / @ryan_dwyer

06/06/2016 at 04:46AM

15
#150 - Ryan Nevius / @ryannevius

03/26/2020 at 07:41PM