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 174 remaining solutions by signing in and submitting your own entry
#175 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

175 active golfers, 396 entries

Leaderboard (lowest score wins):
15
#121 - David Barnett / @mu_mind

11/23/2012 at 08:19PM

15
#122 - mhb / @mhbvim

11/25/2012 at 07:40AM

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

11/25/2012 at 11:02AM

15
#124 - George / @banditaras

11/25/2012 at 09:06PM

15
#125 - Eric Andres / @eric_m_andres

12/04/2012 at 10:53PM

15
#126 - Ben / @ben_g_thomas

01/06/2013 at 01:45AM

15
#127 - CY / @wongcy0

01/28/2013 at 06:17AM

15
#128 - mnx / @mnxx

02/06/2013 at 09:59AM

15
#129 - Addisu Taddese / @azeey

03/02/2013 at 05:58PM

15
#130 - cj / @cj01101

08/13/2013 at 04:07AM

15
#131 - Hachez Floran / @FloranHachez

09/05/2013 at 11:52AM

15
#132 - Martin Barney / @MartinBarney

05/05/2014 at 03:32AM

15
#133 - Dmitriy / @_dpy_

08/21/2014 at 08:45PM

15
#134 - Elizabeth / @sprinkles418

04/14/2015 at 03:42PM

15
#135 - Ryan Dwyer / @ryan_dwyer

06/06/2016 at 04:46AM

15
#136 - Ryan Nevius / @ryannevius

03/26/2020 at 07:41PM

15
#137 - Robin Abrahamsson / @rqAbrahamsson

04/30/2020 at 03:39PM

15
#138 - Salvador Tojo Quintela / @SalvadorTojo

10/09/2021 at 06:50AM

16
#139 - Hubba / @HubbaBubbaFett

11/23/2012 at 07:45PM

16
#140 - Vincent Riquer / @ScriptFanix

11/24/2012 at 01:58AM

16
#141 - HiTECNOLOGYs / @HiTECNOLOGYs

11/27/2012 at 05:25PM

16
#142 - Ming Liu / @vmliu

11/28/2012 at 09:34PM

16
#143 - Steven Ngo / @sngo82

11/28/2012 at 09:41PM

16
#144 - Lance Levine / @LanceSMLevine

12/01/2012 at 09:20AM

16
#145 - Ryan Patterson / @CGamesPlay

12/28/2012 at 08:15PM

16
#146 - Tetsuya Matsuyama / @m_tetsuya

12/30/2012 at 01:11PM

16
#147 - jared miller / @jared_vim

03/02/2013 at 11:28PM

16
#148 - Jordan Owens / @signalhandler

12/09/2013 at 06:28PM

16
#149 - Daniel / @Daniel00288663

04/04/2017 at 09:00AM

16
#150 - jakeroberts / @jakeroberts

05/28/2017 at 03:35PM