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

72 active golfers, 201 entries

Leaderboard (lowest score wins):
26
#61 - RockerZZY / @rocker_zzy

07/19/2020 at 01:00PM

26
#62 - James / @Dronak

12/02/2022 at 04:49PM

27
#63 - Phil Runninger / @PhilRunninger

06/24/2015 at 08:40PM

27
#64 - Raphael / @rnstlr

06/25/2015 at 02:47PM

27
#65 - Gurukandhamoorthi / @Gurukandhamoor1

08/08/2017 at 05:10PM

33
#66 - Dan Piponi / @sigfpe

07/22/2015 at 08:44PM

35
#67 - Lieven Keersmaekers / @LievenKeersmaek

06/27/2015 at 08:39PM

44
#68 - 김범준 / @kmbmjn

05/11/2021 at 04:59AM

44
#69 - nickGPT / @nickandbro

08/28/2024 at 04:07AM

46
#70 - Samir Sadek / @netsamir

07/19/2015 at 03:38PM

56
#71 - Anoop Kumar / @anooplive

06/24/2015 at 07:31PM

72
#72 - Kursion / @kursion

06/25/2015 at 09:11AM