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 53fdb108658ede0002599a8f

Suffix sort

Sort from the end of the line, as if the letters in each line were reversed.

Start file
adjutants
ametropic
audiobook
blockable
demagogic
embryotic
excusable
garroters
housesits
labellers
opacifier
proofroom
quercetin
rejudging
supremely
End file
demagogic
ametropic
embryotic
blockable
excusable
rejudging
audiobook
proofroom
quercetin
opacifier
labellers
garroters
housesits
adjutants
supremely

View Diff

1,4d0
< adjutants
< ametropic
< audiobook
< blockable
5a2
> ametropic
6a4
> blockable
8,11c6,7
< garroters
< housesits
< labellers
< opacifier
---
> rejudging
> audiobook
14c10,14
< rejudging
---
> opacifier
> labellers
> garroters
> housesits
> adjutants

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 41 remaining solutions by signing in and submitting your own entry
#42 dfleischman / dfleischman - Score: 28 - 09/13/14 @ 06:08
:sor/.$/r<CR>ddp:11m14|13m10<CR>ZZ

0 comments


#43 Ram Tamtam / ramtamtamtam - Score: 30 - 08/27/14 @ 13:11
:se ri<CR>qqC<C-R>"<Esc>+q15@q:sor<CR>15@qZZ

0 comments


#44 RobertT / techrt2050 - Score: 30 - 08/28/14 @ 16:33
:so<Tab>/.*\%9v/<CR>ddp2Ldd3kPjddjpZZ

0 comments


#45 Justin Knag / justinknag - Score: 30 - 09/02/14 @ 21:25
:sort<BS>/.$/r<CR>ddp:11m14|13m10<CR>ZZ

0 comments


#46 ЕвгенийВ / imater - Score: 30 - 10/27/14 @ 12:20
:sor/.$/r<CR>ddp:11m14|13,<BS>m10<CR>ZZ

0 comments


#47 Oliver Christ / 0liverChrist - Score: 30 - 02/14/15 @ 18:08
:sor /...../<CR>:<Up><Left>.<CR>:<Up><Left>.<CR>:<Up><Left>.<CR>ZZ

0 comments


#48 Assaf Lavie / AssafLavie - Score: 31 - 04/26/15 @ 19:18
:sor/.$/r<CR>ddp:14<CR>dd<Up><Up>..<Up>"1P..ZZ

0 comments


#49 James T. Huggett / Jmeshka - Score: 33 - 09/01/14 @ 09:30
qq$"ax"Ax......"aP<CR>@qq@q:so<Tab><CR>@qZZ

0 comments


#50 eBrnd / eBrnd - Score: 33 - 11/02/14 @ 17:04
:set rev<Tab><CR>qqC<C-R>"<Esc>jq14@q:sor<CR>15@@ZZ

0 comments


#51 Daniel Helfrich / lazyman114 - Score: 47 - 08/28/14 @ 21:28
:so<Tab>/.*\%9v/<CR>ddp2LAdd<Esc>dd3kPllllllllllhxxjddjpZZ

0 comments


#52 Gurukandhamoorthi / Gurukandhamoor1 - Score: 73 - 08/16/17 @ 15:51
<Esc>Ode<C-X><C-L><C-X><C-L><Esc>Oam<C-X><C-L><Esc>jjkobl<C-N><CR>ex<C-N><CR>re<C-N><CR>aud<C-N><CR>pr<C-N><CR>q<C-N><CR>q<BS>o<C-N><CR>l<C-N><CR>t<BS>g<C-N><CR>h<C-N><CR>ad<C-N><CR>s<C-N><Esc>jdGzZZZ

0 comments


Created by: udioica

52 active golfers, 163 entries

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

08/28/2014 at 10:36AM

19
#2 - Kerson Hsiao / KersonHsiao

08/28/2014 at 11:53AM

19
#3 - John Braxler / braxler

08/28/2014 at 02:47PM

19
#4 - Petro Тrouq / zulolosi

08/28/2014 at 06:21PM

20
#5 - ———đίxίє—flαтlίиє——— / _dixie_flatline

09/01/2014 at 04:45AM

21
#6 - Kai Yuan / kentyuan

08/28/2014 at 10:06AM

21
#7 - pftb12345 / pftb12345

04/22/2015 at 11:39PM

22
#8 - John Meisner / jmeisned

08/27/2014 at 03:59PM

22
#9 - Ky Statham / ijustwannacode

08/27/2014 at 08:57PM

22
#10 - Guillaume Seren / guillaumeseren

08/28/2014 at 08:08AM

22
#11 - Mark Janssen / MPCtje

08/28/2014 at 08:14AM

22
#12 - Phil Runninger / PhilRunninger

08/28/2014 at 01:33PM

22
#13 - brandon salmon / Exiledz

08/29/2014 at 07:55AM

22
#14 - Jeff / just_geophree

10/05/2014 at 10:43PM

22
#15 - Turkey Man / lvturkeyman

12/02/2017 at 03:36AM

22
#16 - DHM / DHM29978992

05/28/2018 at 02:57AM

23
#17 - Matthieu Crapet / mcr05

02/27/2015 at 03:09PM

24
#18 - Tim Chase / gumnos

08/27/2014 at 08:16PM

24
#19 - preston / mstrdarcy

08/28/2014 at 06:25PM

24
#20 - Quota / Quotad

09/03/2014 at 02:23PM

24
#21 - Carlos López / morrizon

09/04/2014 at 12:17PM

24
#22 - Hu Junfeng / junfeng

09/15/2014 at 05:35PM

24
#23 - benekeusz / benekeusz

12/09/2014 at 10:32AM

24
#24 - mark0829 / mark0829

02/04/2015 at 05:43AM

24
#25 - Lifepillar / lifepillar

07/05/2015 at 04:39PM

24
#26 - Jon Krause / jkrause314

05/14/2016 at 11:05PM

24
#27 - Ben Hill / KaizenSoze70

06/13/2016 at 06:38PM

25
#28 - Caek / Caek_

08/27/2014 at 12:28PM

25
#29 - Zapata / Incredible_JFP

08/28/2014 at 11:31PM

25
#30 - madka / lachrimae_pavan

09/06/2014 at 04:43PM