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 51 remaining solutions by signing in and submitting your own entry
#52 Constantine / ConstantineHatz - Score: 18 - 03/16/17 @ 15:28
qqla.<Esc>f.xlx+q7@qZZ

0 comments

#53 Mads Jensen / mads_je - Score: 18 - 03/17/17 @ 14:26
qqla.<Esc>f.xlx+q7@qZZ

0 comments

#54 evilmoe ☮ / evilmoe - Score: 18 - 03/17/17 @ 20:32
qqla.<Esc>3lxlx+q7@qZZ

0 comments

#55 Andreas Anderbach / AAnderbach - Score: 18 - 03/19/17 @ 11:42
qqla.<Esc>f.xlx+q7@qZZ

0 comments

#56 arun mukundan / manyids2 - Score: 18 - 03/22/17 @ 13:00
qqla.<Esc>f.xlx+q7@qZZ

0 comments

#57 caplod / caplod - Score: 18 - 03/24/17 @ 13:18
qala.<Esc>f.xlx+q7@aZZ

0 comments

#58 kim🤔 / kimception - Score: 19 - 03/17/17 @ 22:05
<Esc>qqla.<Esc>f.xlx+q7@qZZ

0 comments

#59 Abhishek Amberkar / greenmang0 - Score: 19 - 03/26/17 @ 13:13
qqla.<Esc>f.xf%.Wq7@qZZ

0 comments

#60 coryknapp / coryknapp - Score: 20 - 03/16/17 @ 06:30
qqlli.<Esc>3lxlxj0q7@qZZ

0 comments

#61 Eric Coleman / EpicColeman - Score: 21 - 03/15/17 @ 17:46
qq^f%xF.xT,i.<Esc>jq7@qZZ

0 comments

#62 Colin Jacobs / coljac - Score: 27 - 03/15/17 @ 00:32
:%s/\(..\).\(.\)%/.\1\2/<CR>ZZ

0 comments

#63 Souvik maji / SouvikMaji94 - Score: 30 - 03/19/17 @ 11:49
qa<Right>a.<Right><Right><Del><Right><Del><Esc>1<CR>q@a@a@a@a@a@a@aZZ

0 comments

#64 boggs / b_ggs - Score: 31 - 03/17/17 @ 02:52
qaf,li.<Esc>f.li<BS><Esc>f%li<BS><Esc>j0q7@a<Esc>:wq<CR>

0 comments

Created by: coljac

64 active golfers, 163 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

13
#31 - Gary Carter / _carterg_

03/24/2017 at 06:42PM

13
#32 - Tyler Holien / tylerholien

03/24/2017 at 09:23PM

13
#33 - retro / tryphopp

03/26/2017 at 03:02AM

13
#34 - Nachiket Bhave / nachiketvb

03/27/2017 at 01:36PM

13
#35 - Daniel / Daniel00288663

03/27/2017 at 02:26PM

14
#36 - James / Dronak

03/15/2017 at 12:59AM

14
#37 - Alexander Bessonov / nonsleepr

03/15/2017 at 05:09AM

14
#38 - AleksandarTrifunovic / akstrfn

03/15/2017 at 09:05AM

14
#39 - Dimitar Ivanov / dimisthoughts

03/19/2017 at 05:58PM

14
#40 - Jakob / jajob

03/21/2017 at 11:23AM

14
#41 - Mark Brody / _markbrody

03/24/2017 at 02:58AM

14
#42 - BlackCap / BlackCapCoder

03/24/2017 at 04:33PM

16
#43 - Jan Bundesmann / ixjab

03/15/2017 at 07:55AM

16
#44 - Kristian Haug / krimhaug

03/15/2017 at 09:48AM

16
#45 - jinx balotchnik / balotchnik

03/23/2017 at 02:25AM

16
#46 - Oscar 🐧 / GraveRaven

03/28/2017 at 04:18PM

17
#47 - Stephan Bugnon / stephanbugnon

03/17/2017 at 02:52PM

17
#48 - John Turner / turnerOnTheGrid

03/27/2017 at 02:39AM

18
#49 - Anoop Kumar / anooplive

03/15/2017 at 01:03AM

18
#50 - John Mahowald / JohnMahowald

03/15/2017 at 06:34PM

18
#51 - Mitchell / Spitchell

03/16/2017 at 08:38AM

18
#52 - Constantine / ConstantineHatz

03/16/2017 at 03:28PM

18
#53 - Mads Jensen / mads_je

03/17/2017 at 02:26PM

18
#54 - evilmoe ☮ / evilmoe

03/17/2017 at 08:32PM

18
#55 - Andreas Anderbach / AAnderbach

03/19/2017 at 11:42AM

18
#56 - arun mukundan / manyids2

03/22/2017 at 01:00PM

18
#57 - caplod / caplod

03/24/2017 at 01:18PM

19
#58 - kim🤔 / kimception

03/17/2017 at 10:05PM

19
#59 - Abhishek Amberkar / greenmang0

03/26/2017 at 01:13PM

20
#60 - coryknapp / coryknapp

03/16/2017 at 06:30AM

21
#61 - Eric Coleman / EpicColeman

03/15/2017 at 05:46PM

27
#62 - Colin Jacobs / coljac

03/15/2017 at 12:32AM

30
#63 - Souvik maji / SouvikMaji94

03/19/2017 at 11:49AM

31
#64 - boggs / b_ggs

03/17/2017 at 02:52AM