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 80 remaining solutions by signing in and submitting your own entry
#81 Austin Ware / @AustinWare17 - Score: 10 - 03/13/18 @ 04:41
:5,8m0<CR><Esc>ZZ

0 comments


Created by: @supergopivimgo1

81 active golfers, 131 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 / @janbundesmann

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 - Axel Forsman / @axelf41

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