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):
15
#121 - Martin Barney / @MartinBarney

05/05/2014 at 03:32AM

15
#122 - Dmitriy / @_dpy_

08/21/2014 at 08:45PM

15
#123 - Elizabeth / @sprinkles418

04/14/2015 at 03:42PM

15
#124 - Ryan Dwyer / @ryan_dwyer

06/06/2016 at 04:46AM

16
#125 - Hubba / @HubbaBubbaFett

11/23/2012 at 07:45PM

16
#126 - Vincent Riquer / @ScriptFanix

11/24/2012 at 01:58AM

16
#127 - HiTECNOLOGYs / @HiTECNOLOGYs

11/27/2012 at 05:25PM

16
#128 - Ming Liu / @vmliu

11/28/2012 at 09:34PM

16
#129 - Steven Ngo / @sngo82

11/28/2012 at 09:41PM

16
#130 - Lance Levine / @LanceSMLevine

12/01/2012 at 09:20AM

16
#131 - Ryan Patterson / @CGamesPlay

12/28/2012 at 08:15PM

16
#132 - Tetsuya Matsuyama / @m_tetsuya

12/30/2012 at 01:11PM

16
#133 - jared miller / @jared_vim

03/02/2013 at 11:28PM

16
#134 - Jordan Owens / @signalhandler

12/09/2013 at 06:28PM

16
#135 - Daniel / @Daniel00288663

04/04/2017 at 09:00AM

16
#136 - jakeroberts / @jakeroberts

05/28/2017 at 03:35PM

16
#137 - Gurukandhamoorthi / @Gurukandhamoor1

08/04/2017 at 05:54PM

17
#138 - Arun / @UArunKumar

12/04/2012 at 08:31PM

17
#139 - Bart of Denver / @bartofdenver

08/13/2013 at 02:18AM

17
#140 - engy / @engydmw

09/24/2013 at 09:33PM

17
#141 - Luke Parsons / @lukeparsons

12/21/2017 at 09:38AM

18
#142 - Phil / @ischi

12/10/2012 at 08:29AM

18
#143 - Fontaine Kévin / @DotSlash974

08/31/2013 at 05:14PM

19
#144 - Scott Myц / @ScottMuc

04/25/2013 at 06:27AM

19
#145 - Kenny Low / @kennylow

08/15/2019 at 04:42PM

20
#146 - charadeyouare / @charadeyouare

05/28/2013 at 09:36PM

21
#147 - Ravi S Sinha / @ambidextrousTx

11/23/2012 at 05:06PM

22
#148 - Mattia Gheda / @ghedamat

11/23/2012 at 11:36PM

22
#149 - Joshua Travis / @jktravis

11/24/2012 at 07:26PM

22
#150 - Peter Esselius / @esselius

02/19/2013 at 04:26PM