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 56d30b70a365ed316105641b

Sorting a glossary

Sort a glossary. Glossary head contains a header phrase ending with ':' and glossary body has multi line text indented with a tab.

Start file
zomg:
    Multiline description
    about zomg.

abc:
    Multiline description
    about abc.
End file
abc:
    Multiline description
    about abc.

zomg:
    Multiline description
    about zomg.

View Diff

2,5d1
< zomg:
<     Multiline description
<     about zomg.
< 
8a5,8
> 
> zomg:
>     Multiline description
>     about zomg.

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 50 remaining solutions by signing in and submitting your own entry
#51 herbage / herbage2 - Score: 6 - 12/10/16 @ 12:57
d}}pZZ

0 comments


#52 Yann / yannstadnicki - Score: 6 - 03/01/17 @ 01:26
4DGpZZ

0 comments


#53 Daniel / Daniel00288663 - Score: 6 - 04/04/17 @ 07:15
4DGpZZ

0 comments


#54 George / Vge0rge - Score: 6 - 04/16/17 @ 11:37
d}GpZZ

0 comments


#55 Gurukandhamoorthi / Gurukandhamoor1 - Score: 6 - 08/12/17 @ 15:36
d}}pZZ

0 comments


#56 Turkey Man / lvturkeyman - Score: 6 - 11/29/17 @ 07:06
d}GpZZ

0 comments


#57 c0llision / 0xc0llision - Score: 6 - 01/28/18 @ 10:21
d}GpZZ

0 comments


#58 DHM / DHM29978992 - Score: 6 - 05/28/18 @ 23:51
d}GpZZ

0 comments


#59 Dmitriy Olshevskiy / olshevskiy_dv - Score: 7 - 02/28/16 @ 20:40
dapGpZZ

0 comments


#60 Syrrim / syrrim - Score: 7 - 03/10/16 @ 20:47
4VdGpZZ

0 comments


#61 Blake Tereau / BlakeTereau - Score: 9 - 02/29/16 @ 19:24
LV3kdHPZZ

0 comments


#62 Wei Fu / fhfuwei - Score: 9 - 03/03/16 @ 08:48
:1,4m8<CR>ZZ

0 comments


#63 Austin Ware / AustinWare17 - Score: 10 - 03/13/18 @ 04:41
:5,8m0<CR><Esc>ZZ

0 comments


Created by: supergopivimgo1

63 active golfers, 94 entries

Leaderboard (lowest score wins):
6
#1 - Cristian Lupașcu / clupasq

02/28/2016 at 03:55PM

6
#2 - James / Dronak

02/28/2016 at 03:59PM

6
#3 - Smylers / Smylers2

02/28/2016 at 04:37PM

6
#4 - Robert Mosher / rcmosher

02/28/2016 at 05:01PM

6
#5 - Jon Krause / jkrause314

02/28/2016 at 05:44PM

6
#6 - Shefaet / shefaet

02/28/2016 at 06:16PM

6
#7 - Urtica dioica / udioica

02/28/2016 at 07:45PM

6
#8 - Samuel Masuy / samasuy

02/29/2016 at 01:48AM

6
#9 - Xiaocan Li / XiaocanLi

02/29/2016 at 02:09AM

6
#10 - Louis Caruana / louiecaruana

02/29/2016 at 05:18AM

6
#11 - Artur Taranchiev / ewokru

02/29/2016 at 05:46AM

6
#12 - Sebastian Pardo / sebpardo

02/29/2016 at 07:35AM

6
#13 - Eduardo / earada

02/29/2016 at 12:33PM

6
#14 - John Braxler / braxler

02/29/2016 at 03:42PM

6
#15 - Charles Laber-Smith / clabersmith

03/01/2016 at 01:39AM

6
#16 - Kevin Sapper / kevin_sapper

03/01/2016 at 06:59AM

6
#17 - Stefan Sonski / stefansonski

03/01/2016 at 09:21AM

6
#18 - Jan Bundesmann / ixjab

03/01/2016 at 10:15AM

6
#19 - hardaudit / hardaudit

03/01/2016 at 01:37PM

6
#20 - Eric Edgar / ericedgar

03/01/2016 at 02:56PM

6
#21 - Tj / yrddy

03/02/2016 at 02:05AM

6
#22 - Ravi S Sinha / ambidextrousTx

03/02/2016 at 04:52AM

6
#23 - Michel Ganguin / tinycrazyfish

03/02/2016 at 09:28AM

6
#24 - ค×ɛเ / pwnedary

03/02/2016 at 05:43PM

6
#25 - James Burns / James_Ian_Burns

03/03/2016 at 08:00PM

6
#26 - glepha / glepha_vim

03/04/2016 at 03:21AM

6
#27 - Tomasz Walotek / uolot

03/04/2016 at 10:52AM

6
#28 - Sébastien Vincent / shinmei

03/05/2016 at 03:24PM

6
#29 - Michael Buckley / apolatg

03/05/2016 at 04:49PM

6
#30 - Tran Duc Thang / thangtd90

03/06/2016 at 08:30AM