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):
12
#31 - Ikypiky / @nerdbeereis

06/16/2016 at 08:15AM

12
#32 - George Angelopoulos / @g_usermod

08/05/2016 at 08:42PM

12
#33 - swarkEafs / @EafsSwark

08/14/2016 at 09:38AM

12
#34 - Jim Bob / @babyclubber

02/28/2017 at 11:25PM

12
#35 - Brian Hall / @_bruab_

03/28/2017 at 02:27PM

12
#36 - Turkey Man / @lvturkeyman

11/27/2017 at 03:43PM

12
#37 - BarbaJol / @drpproteus

01/11/2018 at 05:09PM

12
#38 - Evgeny`s Kindle / @EvgenyKindle

04/28/2018 at 07:20AM

12
#39 - DHM / @DHM29978992

05/08/2018 at 01:24AM

12
#40 - Mihai / @mihaicristiant

03/21/2019 at 10:23AM

14
#41 - a24f0600 / @a24f0600

11/23/2012 at 02:27PM

14
#42 - h_east (トロッコ6個) / @h_east

11/23/2012 at 02:49PM

14
#43 - Pawel Obrok / @mrYapee

11/23/2012 at 07:31PM

14
#44 - SpiroX / @SpiroX

11/23/2012 at 07:47PM

14
#45 - Pete Johns / @johnsyweb

11/23/2012 at 09:12PM

14
#46 - Aniket Schneider / @shaydwyrm

11/24/2012 at 01:45AM

14
#47 - Mattiassich Ákos / @mattiassicha

11/24/2012 at 12:34PM

14
#48 - Max Sherman / @johnislarry

11/25/2012 at 09:32AM

14
#49 - Nathan / @boysetsfrog

11/25/2012 at 12:47PM

14
#50 - Vasil Sakarov / @vsakarov

11/25/2012 at 09:07PM

14
#51 - Oh fear / @ohfear_num

11/25/2012 at 11:40PM

14
#52 - Daniel Lundin / @danielundin

11/26/2012 at 08:34AM

14
#53 - Chris / @ciwchris

11/27/2012 at 04:23AM

14
#54 - taylorka / @taylorka

11/30/2012 at 04:19PM

14
#55 - Michael / @mjs2600

12/02/2012 at 08:38PM

14
#56 - DR / @dde81

12/04/2012 at 02:40AM

14
#57 - jDeveloper / @jDevEE

12/04/2012 at 09:55PM

14
#58 - Ray Lehtiniemi / @rayll

12/09/2012 at 11:05AM

14
#59 - Kudryavtsev Alexandr / @kudryav_a

12/11/2012 at 07:22PM

14
#60 - Édouard M'tou / @DouardM

12/19/2012 at 08:04PM