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 57959f8a083a7e0c45000001

Paragraph sort

My large herbivorous mammals, Vim commands, and POSIX utilities need to be sorted separately.

Start file
camel
elk
alpaca
deer
buffalo

buffer
delete
append
change
file
edit

date
chmod
awk
bc
End file
alpaca
buffalo
camel
deer
elk

append
buffer
change
delete
edit
file

awk
bc
chmod
date

View Diff

The :abc's of Vim, you could say, are the expansions of each single-letter
colon command. Here's the complete list:

:append
:buffer
:change
:delete
:edit
:file
:global
:help
:insert
:join
:k (:mark)
:list
:move
:next
:open
:print
:quit
:read
:substitute
:t (:copy)
:undo
:vglobal
:write
:xit (:exit)
:yank
:z

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 74 remaining solutions by signing in and submitting your own entry
#75 Stop and think / ms_uncountable - Score: 19 - 07/10/17 @ 13:09
qav}B:sort<CR>}jq2@aZZ

0 comments


#76 Gurukandhamoorthi / Gurukandhamoor1 - Score: 19 - 07/11/17 @ 14:33
Gqqv(:sort<CR>kkq2@qZZ

0 comments


#77 Johan Bleuzen / jBleuzen - Score: 19 - 07/28/17 @ 15:05
qqvip:sort<CR>}jq2@qZZ

0 comments


#78 Matt Robinson / mmrobins - Score: 19 - 04/02/18 @ 18:07
qqvip:sort<CR>}jq2@qZZ

0 comments


#79 Charles D / charliechin - Score: 20 - 09/19/17 @ 23:48
qqvip:sort<CR>}jq2@q:x<CR>

0 comments


#80 Tuấnn / tuantv_nd - Score: 21 - 08/02/16 @ 23:56
qqvip:sort u<CR>7jq2@qZZ

0 comments


#81 Rosalie Tolentino / rosatolen - Score: 22 - 08/15/16 @ 00:15
qqvip:sort<CR>q6j@q7j@qZZ

0 comments


#82 James / Dronak - Score: 22 - 08/28/17 @ 02:13
qqV}k:sor<CR>}jq2@qddkPZZ

0 comments


#83 George Angelopoulos / g_usermod - Score: 23 - 08/05/16 @ 18:55
V4j:sor<CR>7GV5j@:7jVL@:ZZ

0 comments


#84 Andres Araya / arayaandresfco - Score: 24 - 07/25/16 @ 13:44
V}k:sort<CR>}jV}k@:}<CR>V}@:ZZ

0 comments


#85 Christopher MCA / christopherMCA - Score: 24 - 07/28/16 @ 03:38
qqvip:sort<CR>q<Esc>}}k@q}}@qZZ

0 comments


#86 Zephyr Pellerin / zefyear - Score: 25 - 07/28/16 @ 19:45
Go<Esc>;:g/./,/^$/sort<CR>ggddZZ

0 comments


#87 Serguei Filimonov / SergueiF - Score: 26 - 07/25/16 @ 14:23
V}k:sort<CR>}jV}k@:}jV}@::wq<CR>

0 comments


#88 Stephan Bugnon / stephanbugnon - Score: 28 - 08/02/16 @ 12:25
5Vqa:sort<CR>q6jV/ed<CR>@a7jVG@aZZ

0 comments


#89 Matt Walsh / wattmalsh - Score: 30 - 02/22/17 @ 23:15
:1,5sort|7,12sort|14,17sort<CR>ZZ

0 comments


#90 Richard Laub / RWLaub91 - Score: 32 - 08/02/16 @ 04:34
v}k:sort<CR>}jv}k:sort<CR>}jv}:sort<CR>ZZ

0 comments


#91 Sam Hammer / samhammer325 - Score: 33 - 07/30/16 @ 06:22
<C-V>4j:sort<CR>7G<C-V>5j:sort<CR>7j<C-V>3j:sort<CR>ZZ

0 comments


#92 Micha / michman89 - Score: 41 - 08/08/16 @ 11:48
Vjjjj:sort<CR>6jVjjjjj:sort<CR>6jjVjjj:sort<CR>:x<CR>

0 comments


#93 Stoyko Stanchev / stoykostanchev - Score: 78 - 08/12/16 @ 21:55
3Gdd1GP5Gdd2GP5GddkP9Gdd7GP10GddkP12GddkP16GddllkkPkkjjjjjddkkjPjjddP<Esc>:w<CR>:q!<BS><CR>

0 comments


Created by: udioica

93 active golfers, 287 entries

Leaderboard (lowest score wins):
14
#1 - Urtica dioica / udioica

07/26/2016 at 05:15AM

14
#2 - OumpaLoumpa / OLoumpa

07/26/2016 at 12:21PM

14
#3 - John Braxler / braxler

07/26/2016 at 01:28PM

14
#4 - Sandeep Dhavale / sandeep_dhavale

07/29/2016 at 05:26AM

14
#5 - L3viathan / L3viathan2142

07/30/2016 at 01:37AM

14
#6 - hyhit / hyhit2

07/31/2016 at 09:25AM

14
#7 - (,,꒪꒫꒪,,) / sneer

08/01/2016 at 12:08PM

14
#8 - Saki Gw / Sakigw

08/04/2016 at 01:19PM

14
#9 - Petro Тrouq / zulolosi

08/04/2016 at 07:58PM

14
#10 - Artūras Zakrevskis / AZakrevskis

08/11/2016 at 12:54PM

14
#11 - Tautvilas / TautviIas

08/11/2016 at 12:54PM

14
#12 - Martynas Bardauskas / mbardauskas

08/11/2016 at 12:55PM

14
#13 - Arijus / argshook

08/11/2016 at 12:59PM

14
#14 - Ivan De Dios / IvantheDugtrio

08/22/2016 at 08:05PM

14
#15 - jaresty / jaresty

08/31/2016 at 02:50PM

14
#16 - Stephen Aument / saument

08/31/2016 at 08:21PM

14
#17 - jdupont655 / jdupont655

09/02/2016 at 12:23AM

14
#18 - Krzysztof Borkowski / smiechowy

09/03/2016 at 07:30PM

14
#19 - loki2441 / loki2441

09/05/2016 at 12:44PM

14
#20 - hor1ace / hor3ace

09/07/2016 at 10:06PM

14
#21 - Caleb Prashant / calebprashant

09/13/2016 at 11:34AM

14
#22 - Nico / _Nico_Caro

09/26/2016 at 05:58PM

14
#23 - trx / trxdbg

10/11/2016 at 08:28AM

14
#24 - John Barbero Unenge / JBarberU

10/19/2016 at 12:33PM

14
#25 - Bill Ruddock / biinari

10/25/2016 at 01:34PM

14
#26 - Linfeng Li / llinfeng19

02/13/2017 at 08:18PM

14
#27 - Zhihong Liu / pieapple03

02/26/2017 at 06:30AM

14
#28 - 梧桐王子 / WutongYujie

05/07/2017 at 03:00AM

14
#29 - Darren Weston / dazWestonUK

08/30/2017 at 08:07PM

14
#30 - Turkey Man / lvturkeyman

11/19/2017 at 05:06AM