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 by @clupasq:

Unlock 5 remaining solutions by signing in and submitting your own entry
Created by: @supergopivimgo1

76 active golfers, 118 entries

Solutions by @clupasq:
6
#1 - Cristian Lupașcu / @clupasq

02/28/2016 at 03:55PM

6
#>1 - Cristian Lupașcu / @clupasq

02/28/2016 at 03:56PM

7
#>70 - Cristian Lupașcu / @clupasq

02/28/2016 at 03:54PM

8
#>73 - Cristian Lupașcu / @clupasq

02/28/2016 at 03:53PM

9
#>73 - Cristian Lupașcu / @clupasq

02/28/2016 at 03:56PM