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
#31 - Thierry Flauss / @ThFjunior

03/06/2016 at 08:58AM

6
#32 - aestetix / @aestetix

03/06/2016 at 06:11PM

6
#33 - Craig Hills / @chills42

03/07/2016 at 12:17PM

6
#34 - Rubén Chavarría T. / @rchavarriat

03/09/2016 at 07:48AM

6
#35 - Andreas Carben / @meiner_eins

03/12/2016 at 11:04AM

6
#36 - Carlos A Henríquez Q / @lagunex

03/13/2016 at 01:21PM

6
#37 - Saki Gw / @Sakigw

03/25/2016 at 02:51PM

6
#38 - Janko Jerinic / @JankoJerinic

03/26/2016 at 08:33AM

6
#39 - Dinesh Bhosale / @MrDineshBhosale

04/01/2016 at 10:33AM

6
#40 - Evan Moore / @etmoore

04/03/2016 at 12:47AM

6
#41 - Nico Gevers / @gevious_

05/08/2016 at 06:33PM

6
#42 - tPenguinLTG / @tpenguinltg

05/11/2016 at 12:26PM

6
#43 - Ben Hill / @KaizenSoze70

05/14/2016 at 08:51PM

6
#44 - Majo / @majodurco

05/14/2016 at 09:36PM

6
#45 - Kerson Hsiao / @KersonHsiao

06/30/2016 at 10:40AM

6
#46 - Jeremiah Goyette / @JeremiahGoyette

08/04/2016 at 12:35AM

6
#47 - Jordan Wightman / @tuo2

08/13/2016 at 12:42PM

6
#48 - jj johnson / @jcassj1

08/23/2016 at 12:18PM

6
#49 - Will / @obiwan__k3n00bi

09/03/2016 at 06:54AM

6
#50 - Bill Ruddock / @biinari

10/25/2016 at 03:29PM

6
#51 - herbage / @herbage2

12/10/2016 at 12:57PM

6
#52 - Yann / @yannstad

03/01/2017 at 01:26AM

6
#53 - Daniel / @Daniel00288663

04/04/2017 at 07:15AM

6
#54 - George / @Vge0rge

04/16/2017 at 11:37AM

6
#55 - Gurukandhamoorthi / @Gurukandhamoor1

08/12/2017 at 03:36PM

6
#56 - Turkey Man / @lvturkeyman

11/29/2017 at 07:06AM

6
#57 - c0llision / @sh3llcode

01/28/2018 at 10:21AM

6
#58 - DHM / @DHM29978992

05/28/2018 at 11:51PM

6
#59 - fsj / @FrogzSJ

08/12/2018 at 07:18PM

6
#60 - Roberto Martínez / @nilp0inter

08/27/2018 at 10:34PM