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: @me_coot

168 active golfers, 377 entries

Leaderboard (lowest score wins):
15
#121 - CY / @wongcy0

01/28/2013 at 06:17AM

15
#122 - mnx / @mnxx

02/06/2013 at 09:59AM

15
#123 - Addisu Taddese / @azeey

03/02/2013 at 05:58PM

15
#124 - cj / @cj01101

08/13/2013 at 04:07AM

15
#125 - Hachez Floran / @FloranHachez

09/05/2013 at 11:52AM

15
#126 - Martin Barney / @MartinBarney

05/05/2014 at 03:32AM

15
#127 - Dmitriy / @_dpy_

08/21/2014 at 08:45PM

15
#128 - Elizabeth / @sprinkles418

04/14/2015 at 03:42PM

15
#129 - Ryan Dwyer / @ryan_dwyer

06/06/2016 at 04:46AM

15
#130 - Ryan Nevius / @ryannevius

03/26/2020 at 07:41PM

15
#131 - Robin Abrahamsson / @rqAbrahamsson

04/30/2020 at 03:39PM

16
#132 - Hubba / @HubbaBubbaFett

11/23/2012 at 07:45PM

16
#133 - Vincent Riquer / @ScriptFanix

11/24/2012 at 01:58AM

16
#134 - HiTECNOLOGYs / @HiTECNOLOGYs

11/27/2012 at 05:25PM

16
#135 - Ming Liu / @vmliu

11/28/2012 at 09:34PM

16
#136 - Steven Ngo / @sngo82

11/28/2012 at 09:41PM

16
#137 - Lance Levine / @LanceSMLevine

12/01/2012 at 09:20AM

16
#138 - Ryan Patterson / @CGamesPlay

12/28/2012 at 08:15PM

16
#139 - Tetsuya Matsuyama / @m_tetsuya

12/30/2012 at 01:11PM

16
#140 - jared miller / @jared_vim

03/02/2013 at 11:28PM

16
#141 - Jordan Owens / @signalhandler

12/09/2013 at 06:28PM

16
#142 - Daniel / @Daniel00288663

04/04/2017 at 09:00AM

16
#143 - jakeroberts / @jakeroberts

05/28/2017 at 03:35PM

16
#144 - Gurukandhamoorthi / @Gurukandhamoor1

08/04/2017 at 05:54PM

17
#145 - Arun / @UArunKumar

12/04/2012 at 08:31PM

17
#146 - Bart of Denver / @bartofdenver

08/13/2013 at 02:18AM

17
#147 - engy / @engydmw

09/24/2013 at 09:33PM

17
#148 - Luke Parsons / @lukeparsons

12/21/2017 at 09:38AM

18
#149 - Phil / @ischi

12/10/2012 at 08:29AM

18
#150 - Fontaine Kévin / @DotSlash974

08/31/2013 at 05:14PM