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 50a9cedcf54bf60002000028

Sort by sum of numbers in a line(?)

The lines with the biggest sums need to be at the top. The sums are on the right, which makes life hard. Maybe you can find a feature that will do all the work for you...

Start file
8635147+876+5597+1686+54=8643360
2415+382376+88324+81544+926+68619475+677+222852=69398589
80+21+4478882+8945092=13424075
62+9598=9660
16832904+537+51460155+6822+2+4901436+47443+5669+855928+8113549+424282=82648727
33+9872=9905
555839
5017598+5639262+4+62+9413+4+4991+41568=10712902
4977+164+77+1018643+593851+83730=1701442
220+6831+26=7077
5+54102+1034451=1088558
37844
1
35+2983325+0+6400=2989760
8081+8361365+6+477=8369929
66+68232+9406935+6489662=15964895
6569+59336692+75+11328=59354664
28332+725+2683+45913425+9648987+4911=55599063
69724687+8+7+9940+5568+29585+518916=70288711
1804642
659157+5144361+7072+16+4799+811+58742059+451875+138174=65148324
2288508+509472+43+83704=2881727
872027+1115415+1+47922+547008+56+5550+71642773+948394=75179146
142
End file
16832904+537+51460155+6822+2+4901436+47443+5669+855928+8113549+424282=82648727
872027+1115415+1+47922+547008+56+5550+71642773+948394=75179146
69724687+8+7+9940+5568+29585+518916=70288711
2415+382376+88324+81544+926+68619475+677+222852=69398589
659157+5144361+7072+16+4799+811+58742059+451875+138174=65148324
6569+59336692+75+11328=59354664
28332+725+2683+45913425+9648987+4911=55599063
66+68232+9406935+6489662=15964895
80+21+4478882+8945092=13424075
5017598+5639262+4+62+9413+4+4991+41568=10712902
8635147+876+5597+1686+54=8643360
8081+8361365+6+477=8369929
35+2983325+0+6400=2989760
2288508+509472+43+83704=2881727
1804642
4977+164+77+1018643+593851+83730=1701442
5+54102+1034451=1088558
555839
37844
33+9872=9905
62+9598=9660
220+6831+26=7077
142
1

View Diff

1c1,3
< 8635147+876+5597+1686+54=8643360
---
> 16832904+537+51460155+6822+2+4901436+47443+5669+855928+8113549+424282=82648727
> 872027+1115415+1+47922+547008+56+5550+71642773+948394=75179146
> 69724687+8+7+9940+5568+29585+518916=70288711
2a5,8
> 659157+5144361+7072+16+4799+811+58742059+451875+138174=65148324
> 6569+59336692+75+11328=59354664
> 28332+725+2683+45913425+9648987+4911=55599063
> 66+68232+9406935+6489662=15964895
4,7d9
< 62+9598=9660
< 16832904+537+51460155+6822+2+4901436+47443+5669+855928+8113549+424282=82648727
< 33+9872=9905
< 555839
8a11,15
> 8635147+876+5597+1686+54=8643360
> 8081+8361365+6+477=8369929
> 35+2983325+0+6400=2989760
> 2288508+509472+43+83704=2881727
> 1804642
10d16
< 220+6831+26=7077
11a18
> 555839
13,23c20,22
< 1
< 35+2983325+0+6400=2989760
< 8081+8361365+6+477=8369929
< 66+68232+9406935+6489662=15964895
< 6569+59336692+75+11328=59354664
< 28332+725+2683+45913425+9648987+4911=55599063
< 69724687+8+7+9940+5568+29585+518916=70288711
< 1804642
< 659157+5144361+7072+16+4799+811+58742059+451875+138174=65148324
< 2288508+509472+43+83704=2881727
< 872027+1115415+1+47922+547008+56+5550+71642773+948394=75179146
---
> 33+9872=9905
> 62+9598=9660
> 220+6831+26=7077
24a24
> 1

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 24 remaining solutions by signing in and submitting your own entry
#25 Marchand Paul-Valère / pvmarch - Score: 16 - 03/06/14 @ 09:19
:sor!nr/\d*$/<CR>ZZ

0 comments

#26 Greg Hues / ghues - Score: 16 - 03/26/14 @ 23:45
:sor!nr/\d*$/<CR>ZZ

0 comments

#27 Andy Loomis / alumux - Score: 16 - 11/26/15 @ 16:28
:sor!nr/\d*$/<CR>ZZ

0 comments

#28 Jon Krause / jkrause314 - Score: 16 - 01/20/16 @ 22:23
:sor!nr#\d*$#<CR>ZZ

0 comments

#29 Martin Tõnusoo / martintonusoo - Score: 16 - 07/27/16 @ 22:44
:sor!n/\d*$/r<CR>ZZ

0 comments

#30 Runar / runarfu - Score: 17 - 12/03/12 @ 21:05
:sort!nr/\d*$/<CR>ZZ

0 comments

Created by: udioica

30 active golfers, 45 entries

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

11/19/2012 at 07:38AM

15
#2 - Conner McDaniel / connermcd

11/19/2012 at 03:35PM

15
#3 - Dave Ingram / dmi

11/21/2012 at 06:16PM

15
#4 - Petro Тrouq / zulolosi

02/24/2013 at 10:08PM

15
#5 - Zach Kelling / zeekay

02/25/2013 at 08:29PM

15
#6 - John Braxler / braxler

10/20/2014 at 05:15PM

15
#7 - Smylers / Smylers2

10/29/2015 at 10:43AM

16
#8 - h_east (トロッコ6個) / h_east

11/19/2012 at 06:31AM

16
#9 - Kerson Hsiao / KersonHsiao

11/19/2012 at 06:42AM

16
#10 - buz / buzbone

11/19/2012 at 09:55AM

16
#11 - captain_morgan / captain_morgan

11/20/2012 at 01:05AM

16
#12 - Marcin Sza / coot_

11/20/2012 at 09:41AM

16
#13 - a24f0600 / a24f0600

11/20/2012 at 11:08AM

16
#14 - Aniket Schneider / shaydwyrm

11/20/2012 at 11:41PM

16
#15 - Vasil Sakarov / vsakarov

11/21/2012 at 11:35PM

16
#16 - 沢城うぃんびー / w1mvy

11/23/2012 at 09:19AM

16
#17 - 無ん垢の叫び / john_ababa

11/25/2012 at 11:49AM

16
#18 - DR / dde81

12/04/2012 at 09:54PM

16
#19 - Casey Robinson / rampant_monkey

12/05/2012 at 09:46PM

16
#20 - Pradeep Kumar / pradeep6kumar

12/13/2012 at 03:49AM

16
#21 - Hubba / HubbaBubbaFett

12/29/2012 at 08:58PM

16
#22 - Steve Tjoa / stevetjoa

02/05/2013 at 09:20PM

16
#23 - James / Dronak

09/01/2013 at 11:35PM

16
#24 - Oliver Christ / 0liverChrist

11/11/2013 at 05:21PM

16
#25 - Marchand Paul-Valère / pvmarch

03/06/2014 at 09:19AM

16
#26 - Greg Hues / ghues

03/26/2014 at 11:45PM

16
#27 - Andy Loomis / alumux

11/26/2015 at 04:28PM

16
#28 - Jon Krause / jkrause314

01/20/2016 at 10:23PM

16
#29 - Martin Tõnusoo / martintonusoo

07/27/2016 at 10:44PM

17
#30 - Runar / runarfu

12/03/2012 at 09:05PM