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 58c88ae7229d3b000600001f

Fiddle percentages into real numbers

Get rid of the '%' symbols and shift the decimal place. This is the easier version - all the columns line up.

Start file
1,25.1%,good
2,19.8%,bad
3,30.5%,bad
4,71.4%,good
5,16.8%,bad
6,93.9%,good
8,37.1%,bad
9,35.3%,bad
End file
1,.251,good
2,.198,bad
3,.305,bad
4,.714,good
5,.168,bad
6,.939,good
8,.371,bad
9,.353,bad

View Diff

1,8c1,8
< 1,25.1%,good
< 2,19.8%,bad
< 3,30.5%,bad
< 4,71.4%,good
< 5,16.8%,bad
< 6,93.9%,good
< 8,37.1%,bad
< 9,35.3%,bad
---
> 1,.251,good
> 2,.198,bad
> 3,.305,bad
> 4,.714,good
> 5,.168,bad
> 6,.939,good
> 8,.371,bad
> 9,.353,bad

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 213 remaining solutions by signing in and submitting your own entry
#214 Naz Malik / @nazwhale - Score: 73 - 04/20/17 @ 08:10
:s<BS>%s/%//g<CR>:%s/.//g<CR>u:%s/.//g<CR>uwwwxj.j.j.j.j..juj.j.hhi.<Esc>k.k.k.k.k.k.k.ZZ

0 comments


Created by: @coljac

214 active golfers, 637 entries

Leaderboard (lowest score wins):
13
#1 - tPenguinLTG / @tpenguinltg

03/15/2017 at 12:45AM

13
#2 - Vaughn Cato / @vaughncato

03/15/2017 at 03:35AM

13
#3 - Urtica dioica / @udioica

03/15/2017 at 06:49AM

13
#4 - xwle / @xwle

03/15/2017 at 07:21AM

13
#5 - Smylers / @Smylers2

03/15/2017 at 07:21AM

13
#6 - John Braxler / @braxler

03/15/2017 at 01:34PM

13
#7 - Saki Gw / @Sakigw

03/15/2017 at 01:38PM

13
#8 - Roberto Carraretto / @robcarraretto

03/16/2017 at 12:24AM

13
#9 - Evan Relf / @evanrelf

03/16/2017 at 03:14AM

13
#10 - akanb / @GAkt6L6SlKhy8zA

03/16/2017 at 04:13AM

13
#11 - Paulo H Baumann / @PauloBaumann

03/16/2017 at 04:01PM

13
#12 - Zachary Neubert / @Mr_Saturn16347

03/17/2017 at 01:17AM

13
#13 - John Wilson / @Login4anonymity

03/18/2017 at 09:04AM

13
#14 - Carcarlo Pravettoni / @trisino

03/18/2017 at 10:40PM

13
#15 - Evgeny`s Kindle / @EvgenyKindle

03/19/2017 at 09:14AM

13
#16 - Christian Guenter / @chris_guenter

03/19/2017 at 08:46PM

13
#17 - Matthias Klauer / @M_Klauer

03/19/2017 at 09:08PM

13
#18 - Ilya Shakirov / @aelaau

03/20/2017 at 07:44AM

13
#19 - James Pringle / @jameskpringle

03/20/2017 at 04:48PM

13
#20 - Kyle Phelps / @kph3lps

03/21/2017 at 01:56AM

13
#21 - Gabriel Florit / @gabrielflorit

03/21/2017 at 03:32AM

13
#22 - David Wright / @David27Wright

03/21/2017 at 03:51PM

13
#23 - Alex Subtle / @AlexSubtle

03/21/2017 at 06:41PM

13
#24 - Andreas Hagesjö / @Ankhagge

03/21/2017 at 10:49PM

13
#25 - maaaaaaacs / @maaaaaacs

03/22/2017 at 11:10AM

13
#26 - Tose / @Toseim

03/22/2017 at 11:50AM

13
#27 - Cameron Jones / @Deimyts

03/22/2017 at 09:05PM

13
#28 - oscar / @zonza_mas

03/23/2017 at 02:45PM

13
#29 - Bennett Rennier / @BennettRennier

03/24/2017 at 01:42AM

13
#30 - GVest Two / @GvestTwo

03/24/2017 at 03:19AM