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):
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

12
#41 - JimmyGymglish / @JGymglish

01/15/2020 at 08:23AM

12
#42 - Miłosz Łakomy / @foobar01123

06/02/2020 at 04:40AM

12
#43 - POSIX / @po6ix

01/22/2022 at 03:16PM

12
#44 - ff df / @ffdf93207177

04/18/2022 at 03:42AM

12
#45 - Jean George / @JeanGeo20504212

04/30/2022 at 10:30PM

12
#46 - russellzhaomao / @russellzhaomao

06/06/2022 at 11:26AM

12
#47 - Alex / @AlexanderHeatl2

07/07/2022 at 11:09PM

12
#48 - math is what I hate / @mpnmbn

09/20/2022 at 06:55PM

12
#49 - Janzen / @__Coos

09/24/2022 at 07:17AM

12
#50 - Andrii Soldatenko / @a_soldatenko

10/09/2022 at 07:06PM

12
#51 - Qing Liu / @poeminlash

11/07/2022 at 04:46AM

12
#52 - shahanavaz m / @shahanavazm

04/04/2024 at 04:24AM

12
#53 - Peppa Pig / @PeppaPigSg

06/08/2024 at 08:21AM

12
#54 - nickGPT / @nickandbro

08/28/2024 at 07:25PM

14
#55 - a24f0600 / @a24f0600

11/23/2012 at 02:27PM

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

11/23/2012 at 02:49PM

14
#57 - Pawel Obrok / @mrYapee

11/23/2012 at 07:31PM

14
#58 - SpiroX / @SpiroX

11/23/2012 at 07:47PM

14
#59 - Pete Johns / @johnsyweb

11/23/2012 at 09:12PM

14
#60 - Aniket Schneider / @shaydwyrm

11/24/2012 at 01:45AM