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

0 comments


Created by: @supergopivimgo1

68 active golfers, 101 entries

Leaderboard (lowest score wins):
6
#61 - vg / @vg53210350

10/29/2018 at 04:22AM

6
#62 - Ben M / @Sweet_Scientist

06/07/2019 at 06:03AM

7
#63 - Dmitriy Olshevskiy / @olshevskiy_dv

02/28/2016 at 08:40PM

7
#64 - Syrrim / @syrrim

03/10/2016 at 08:47PM

7
#65 - Timur Celik / @clktmr

12/23/2018 at 11:01AM

9
#66 - Blake Tereau / @BlakeTereau

02/29/2016 at 07:24PM

9
#67 - Wei Fu / @fhfuwei

03/03/2016 at 08:48AM

10
#68 - Austin Ware / @AustinWare17

03/13/2018 at 04:41AM