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):
15
#151 - Robin Abrahamsson / @rqAbrahamsson

04/30/2020 at 03:39PM

15
#152 - Salvador Tojo Quintela / @SalvadorTojo

10/09/2021 at 06:50AM

16
#153 - Hubba / @HubbaBubbaFett

11/23/2012 at 07:45PM

16
#154 - Vincent Riquer / @ScriptFanix

11/24/2012 at 01:58AM

16
#155 - HiTECNOLOGYs / @HiTECNOLOGYs

11/27/2012 at 05:25PM

16
#156 - Ming Liu / @vmliu

11/28/2012 at 09:34PM

16
#157 - Steven Ngo / @sngo82

11/28/2012 at 09:41PM

16
#158 - Lance Levine / @LanceSMLevine

12/01/2012 at 09:20AM

16
#159 - Ryan Patterson / @CGamesPlay

12/28/2012 at 08:15PM

16
#160 - Tetsuya Matsuyama / @m_tetsuya

12/30/2012 at 01:11PM

16
#161 - jared miller / @jared_vim

03/02/2013 at 11:28PM

16
#162 - Jordan Owens / @signalhandler

12/09/2013 at 06:28PM

16
#163 - Daniel / @Daniel00288663

04/04/2017 at 09:00AM

16
#164 - jakeroberts / @jakeroberts

05/28/2017 at 03:35PM

16
#165 - Gurukandhamoorthi / @Gurukandhamoor1

08/04/2017 at 05:54PM

17
#166 - Arun / @UArunKumar

12/04/2012 at 08:31PM

17
#167 - Bart of Denver / @bartofdenver

08/13/2013 at 02:18AM

17
#168 - engy / @engydmw

09/24/2013 at 09:33PM

17
#169 - Luke Parsons / @lukeparsons

12/21/2017 at 09:38AM

17
#170 - Divvy C. / @divvy_c

08/11/2023 at 05:58PM

18
#171 - Phil / @ischi

12/10/2012 at 08:29AM

18
#172 - Fontaine Kévin / @DotSlash974

08/31/2013 at 05:14PM

18
#173 - Buatvimgolf / @buatvimgolf

07/07/2022 at 03:50PM

19
#174 - Scott Myц / @ScottMuc

04/25/2013 at 06:27AM

19
#175 - Kenny Low / @kennylow

08/15/2019 at 04:42PM

20
#176 - charadeyouare / @charadeyouare

05/28/2013 at 09:36PM

20
#177 - ʋ( = ᴥ =)ʋ / @gianni1986

04/27/2023 at 07:39PM

21
#178 - Ravi S Sinha / @ambidextrousTx

11/23/2012 at 05:06PM

22
#179 - Mattia Gheda / @ghedamat

11/23/2012 at 11:36PM

22
#180 - Joshua Travis / @jktravis

11/24/2012 at 07:26PM