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 558aef9a9b964426b5010562

Restore order to the alphabet

The numbers are OK. The letters are wonky.

Start file
0a
1b
2j
3d
4i
5g
6h
7c
8e
9f
10k
11l
12m
13n
14o
15p
16q
17r
18s
19t
End file
0a
1b
2c
3d
4e
5f
6g
7h
8i
9j
10k
11l
12m
13n
14o
15p
16q
17r
18s
19t

View Diff

3c3
< 2j
---
> 2c
5,10c5,10
< 4i
< 5g
< 6h
< 7c
< 8e
< 9f
---
> 4e
> 5f
> 6g
> 7h
> 8i
> 9j

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 41 remaining solutions by signing in and submitting your own entry
#42 Gammelin Guillaume / ggammelin - Score: 26 - 06/25/15 @ 13:08
2j$rc2jrejrfjrgjrhjrijrjZZ

0 comments

#43 Geoff Gu / geoff_gu - Score: 26 - 06/26/15 @ 06:53
/j<CR>rcjjrejrfjrgjrhjrijrjZZ

0 comments

#44 Teemu Okkonen / TeemuOkkonen - Score: 26 - 07/06/15 @ 20:54
l2jrc2jrejrfjrgjrhjrijrjZZ

0 comments

#45 Daniel Teal / coelestinian - Score: 26 - 08/31/16 @ 20:53
jjlrcjjrejrfjrgjrhjrijrjZZ

0 comments

#46 Phil Runninger / PhilRunninger - Score: 27 - 06/24/15 @ 20:40
9jlRj<Up><Left>i<Left><Up>h<Left><Up>g<Left><Up>f<Left><Up>e<Left><Up><Up>c<Esc>ZZ

0 comments

#47 Raphael / rnstlr - Score: 27 - 06/25/15 @ 14:47
2jA<BS>c<Esc>2jrejrfjrgjrhjrijrjZZ

0 comments

#48 Dan Piponi / sigfpe - Score: 33 - 07/22/15 @ 20:44
:%s/\a/\=nr2char(96+line('.'))<CR>ZZ

0 comments

#49 Lieven Keersmaekers / LievenKeersmaek - Score: 35 - 06/27/15 @ 20:39
:%s/\v\a/\=nr2char(line('.')+<k9><k6>)<CR>ZZ

0 comments

#50 Samir Sadek / netsamir - Score: 46 - 07/19/15 @ 15:38
:%s/.*/\=line('.')-1.nr2char(line('.')+96)/<CR>ZZ

0 comments

#51 Anoop Kumar / anooplive - Score: 56 - 06/24/15 @ 19:31
:%s/\d*/0/<CR>:sort<CR>jqq<C-A>jquqw:.,$norm! @q<CR>qu:.,$norm! @w<CR>ZZ

0 comments

#52 Kursion / kursion - Score: 72 - 06/25/15 @ 09:11
<Right><C-V>9<Down>d:20pu<CR>:11<CR>$<C-V>9<Down>d:30pu<CR>V19<Up>:sort<CR><C-V>9<Down>dggp:31<CR><C-B><C-V>9<Down>d:11<CR><Right>p:21<CR>V40<Down>d<Esc>:wq<CR>

0 comments

Created by: udioica

52 active golfers, 138 entries

Leaderboard (lowest score wins):
12
#1 - Urtica dioica / udioica

06/25/2015 at 06:50PM

12
#2 - John Braxler / braxler

06/25/2015 at 06:53PM

12
#3 - Mutter Mumble / muttermumble

06/25/2015 at 07:46PM

12
#4 - Steffen Köhler / Baertierchen

07/11/2015 at 11:15PM

12
#5 - Jaypal Singh / JaypalSingh

08/18/2015 at 12:02AM

12
#6 - Liam Thurston / lthurston188

08/18/2015 at 01:48AM

12
#7 - Mike Adams / davis_cromwell

10/03/2015 at 11:48PM

12
#8 - Walker Boh / walker_boh

10/08/2015 at 08:10AM

13
#9 - pftb12345 / pftb12345

06/24/2015 at 10:39PM

13
#10 - Jon Featherstone / feathj

06/25/2015 at 03:09AM

13
#11 - Jakub Horák / kubahorak

06/25/2015 at 01:40PM

13
#12 - Wlad / wladston

06/25/2015 at 05:00PM

13
#13 - DocThor Neuland / DocThorNeuland

06/25/2015 at 06:45PM

13
#14 - Petro Тrouq / zulolosi

06/25/2015 at 07:01PM

13
#15 - Jonas Ng / jnshey

06/26/2015 at 04:55AM

13
#16 - Lifepillar / lifepillar

06/26/2015 at 09:15AM

13
#17 - Matthieu Crapet / mcr05

06/28/2015 at 06:34AM

13
#18 - Adrien Fabre / statox42

06/29/2015 at 11:59AM

13
#19 - ahumph / ahumph

06/29/2015 at 12:43PM

13
#20 - Bart / oneofmanybarts

06/30/2015 at 08:45AM

13
#21 - Elizabeth / sprinkles418

06/30/2015 at 04:49PM

13
#22 - Louis Burke / LambdaABeta

07/07/2015 at 05:50PM

13
#23 - Ferdev vimgolf / fergvimgolf

08/11/2015 at 10:13PM

13
#24 - Калабук Дима / KalabukDima

08/22/2015 at 07:01PM

13
#25 - Blake Tereau / BlakeTereau

08/22/2015 at 10:23PM

13
#26 - PL / petrlaitoch

09/17/2015 at 10:35PM

13
#27 - Jon Krause / jkrause314

10/18/2015 at 02:15AM

13
#28 - Dimitar Dimitrov / kurkale6ka

03/18/2016 at 02:57PM

13
#29 - Chenut Ludovic / 7Brwa7

04/08/2016 at 08:41AM

13
#30 - Daniel / Daniel00288663

04/04/2017 at 07:01AM

14
#31 - Samuel Masuy / samasuy

06/26/2015 at 05:12AM

15
#32 - Skúli Jóhannsson / skulibj

06/26/2015 at 12:43AM

15
#33 - anders jansson / _aaanders

06/27/2015 at 03:46PM

15
#34 - jack / jackw411

06/28/2015 at 09:42PM

15
#35 - Hans Löfving / L3E7

07/12/2015 at 09:10PM

15
#36 - Jason Schulz / uxcn_

07/26/2015 at 01:19AM

15
#37 - Yann / yannstadnicki

03/01/2017 at 01:16AM

16
#38 - Stefan Knudsen / knud32

06/25/2015 at 03:49AM

22
#39 - Alphan Yılmaz / alphanyilmaz

06/28/2015 at 07:13AM

26
#40 - Joel Elkins / dice_tea

06/24/2015 at 06:57PM

26
#41 - Carlos López / morrizon

06/24/2015 at 07:52PM

26
#42 - Gammelin Guillaume / ggammelin

06/25/2015 at 01:08PM

26
#43 - Geoff Gu / geoff_gu

06/26/2015 at 06:53AM

26
#44 - Teemu Okkonen / TeemuOkkonen

07/06/2015 at 08:54PM

26
#45 - Daniel Teal / coelestinian

08/31/2016 at 08:53PM

27
#46 - Phil Runninger / PhilRunninger

06/24/2015 at 08:40PM

27
#47 - Raphael / rnstlr

06/25/2015 at 02:47PM

33
#48 - Dan Piponi / sigfpe

07/22/2015 at 08:44PM

35
#49 - Lieven Keersmaekers / LievenKeersmaek

06/27/2015 at 08:39PM

46
#50 - Samir Sadek / netsamir

07/19/2015 at 03:38PM

56
#51 - Anoop Kumar / anooplive

06/24/2015 at 07:31PM

72
#52 - Kursion / kursion

06/25/2015 at 09:11AM