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):
22
#151 - Bjorn / @bjorn_248

11/15/2013 at 07:58PM

23
#152 - Tj / @yrddy

08/19/2014 at 11:50AM

23
#153 - Graham Singer / @grahamsinger

06/03/2019 at 11:34PM

24
#154 - Asenar / @asenar

11/25/2012 at 02:36PM

24
#155 - A R / @arusso23

12/22/2012 at 08:28AM

28
#156 - Pradeep Kumar / @pradeep6kumar

12/10/2012 at 04:03PM

34
#157 - Sebastian Heil / @sebokopter

11/23/2012 at 09:59PM

41
#158 - FocusandBlur / @focusandblur

03/23/2014 at 08:51PM

43
#159 - Charlene Tshos / @charlymul

04/10/2013 at 08:12AM

169
#160 - 최용철 Charles Choi / @cycorld

04/06/2013 at 03:17PM

308
#161 - Ben Ogorek / @baogorek

04/11/2013 at 05:29PM