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 59 remaining solutions by signing in and submitting your own entry
#60 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

60 active golfers, 161 entries

Leaderboard (lowest score wins):
13
#31 - Daniel / @Daniel00288663

04/04/2017 at 07:01AM

13
#32 - DHM / @DHM29978992

05/27/2018 at 02:11AM

13
#33 - Mihai / @mihaicristiant

04/01/2019 at 12:47PM

14
#34 - Samuel Masuy / @samasuy

06/26/2015 at 05:12AM

15
#35 - Skúli Jóhannsson / @skulibj

06/26/2015 at 12:43AM

15
#36 - anders jansson / @_aaanders

06/27/2015 at 03:46PM

15
#37 - jack / @jackw411

06/28/2015 at 09:42PM

15
#38 - Elite Hacker of the Light / @L3E7

07/12/2015 at 09:10PM

15
#39 - Jason Schulz / @uxcn_

07/26/2015 at 01:19AM

15
#40 - Yann / @yannstad

03/01/2017 at 01:16AM

15
#41 - JimmyGymglish / @JGymglish

01/15/2020 at 11:59AM

16
#42 - Stefan Knudsen / @knud32

06/25/2015 at 03:49AM

16
#43 - Ψαροκροκέτα / @psarokroketa

07/29/2017 at 03:24PM

22
#44 - Alphan Yılmaz / @alphanyilmaz

06/28/2015 at 07:13AM

22
#45 - loupiot.veloce / @LoupiotVeloce

06/14/2020 at 09:01AM

26
#46 - Joel Elkins / @dice_tea

06/24/2015 at 06:57PM

26
#47 - Carlos López / @morrizon

06/24/2015 at 07:52PM

26
#48 - Gammelin Guillaume / @ggammelin

06/25/2015 at 01:08PM

26
#49 - Geoff Gu / @geoff_gu

06/26/2015 at 06:53AM

26
#50 - Teemu Okkonen / @TeemuOkkonen

07/06/2015 at 08:54PM

26
#51 - Daniel Teal / @coelestinian

08/31/2016 at 08:53PM

26
#52 - RockerZZY / @rocker_zzy

07/19/2020 at 01:00PM

27
#53 - Phil Runninger / @PhilRunninger

06/24/2015 at 08:40PM

27
#54 - Raphael / @rnstlr

06/25/2015 at 02:47PM

27
#55 - Gurukandhamoorthi / @Gurukandhamoor1

08/08/2017 at 05:10PM

33
#56 - Dan Piponi / @sigfpe

07/22/2015 at 08:44PM

35
#57 - Lieven Keersmaekers / @LievenKeersmaek

06/27/2015 at 08:39PM

46
#58 - Samir Sadek / @netsamir

07/19/2015 at 03:38PM

56
#59 - Anoop Kumar / @anooplive

06/24/2015 at 07:31PM

72
#60 - Kursion / @kursion

06/25/2015 at 09:11AM