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 81 remaining solutions by signing in and submitting your own entry
#82 evilmoe ☮ / evilmoe - Score: 18 - 03/17/17 @ 20:32
qqla.<Esc>3lxlx+q7@qZZ

0 comments

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

0 comments

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

0 comments

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

0 comments

#86 JerryLee / varXinYuan - Score: 18 - 04/05/17 @ 09:54
qqwa.<Esc>f.xlx<CR>q7@qZZ

0 comments

#87 Alec Zhang / alecjzhang - Score: 18 - 04/18/17 @ 23:00
qqla.<Esc>f.xlx+q7@qZZ

0 comments

#88 Juha Paatelma / jpaatelm - Score: 18 - 04/20/17 @ 09:00
f.<C-V>Gf.xbPf%<C-V>Gf%xZZ

0 comments

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

0 comments

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

0 comments

#91 Atsushi Terada / terada_atsushi - Score: 19 - 03/29/17 @ 12:31
<C-V>GlA.<Esc>2f.<C-V>8jxl.:wq<CR>

0 comments

#92 raffitz / raffitz - Score: 19 - 04/19/17 @ 17:30
qqla.<Esc>f.xlxj0q7@qZZ

0 comments

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

0 comments

#94 Milovan Zogovic / zogash - Score: 20 - 04/13/17 @ 07:08
:%norm la.<C-V><Esc>3lxlx<CR>ZZ

0 comments

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

0 comments

#96 Ryan Jarrett / texmexas - Score: 21 - 04/03/17 @ 14:50
:%s/[%.]//g<CR>l<C-V>8kA.<Esc>ZZ

0 comments

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

0 comments

#98 Rodrigo García / garcialeonrodri - Score: 28 - 04/01/17 @ 16:46
:%s/\(..\)\.\(.\)%/\.\1\2<CR>ZZ

0 comments

#99 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

#100 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

#101 Bruce Park / bpark0 - Score: 33 - 04/16/17 @ 22:12
:%s/\v(\d+)\.(\d+)\%/\.\1\2/g<CR>:x<CR>

0 comments

#102 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

102 active golfers, 280 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

13
#36 - D W / dweij1

03/29/2017 at 03:07PM

13
#37 - JTR / meDOT__name__

03/30/2017 at 01:41AM

13
#38 - Maximilian Albert / cilix42

03/30/2017 at 01:42AM

13
#39 - Birger / Birger_Ni

03/30/2017 at 09:21AM

13
#40 - Pablo R. Dinella / pablordinella

03/30/2017 at 01:02PM

13
#41 - Quark / PuzzleQuark

04/01/2017 at 06:35PM

13
#42 - John Turner / turnerOnTheGrid

04/02/2017 at 07:20PM

13
#43 - Rao Zvorovski / RaoZvorovski

04/02/2017 at 07:27PM

13
#44 - Remus Dalrymple / bornintheflames

04/08/2017 at 12:21AM

13
#45 - Dmitriy / dm_alt

04/08/2017 at 10:12AM

13
#46 - Michael Robinson / laxdog

04/11/2017 at 12:34PM

13
#47 - Sebastian Rapp / se_rapp

04/12/2017 at 06:55PM

13
#48 - Colby Hamilton / ColbyHamilton5

04/17/2017 at 02:13PM

13
#49 - 梧桐王子 / WutongYujie

04/20/2017 at 01:48AM

13
#50 - Tom BP / ThosBP

04/20/2017 at 10:27AM

13
#51 - Jason Hooper 🇨🇦 / jasonincanada

04/22/2017 at 09:23PM

14
#52 - James / Dronak

03/15/2017 at 12:59AM

14
#53 - Alexander Bessonov / nonsleepr

03/15/2017 at 05:09AM

14
#54 - AleksandarTrifunovic / akstrfn

03/15/2017 at 09:05AM

14
#55 - Dimitar Ivanov / dimisthoughts

03/19/2017 at 05:58PM

14
#56 - Jakob / jajob

03/21/2017 at 11:23AM

14
#57 - Mark Brody / _markbrody

03/24/2017 at 02:58AM

14
#58 - BlackCap / BlackCapCoder

03/24/2017 at 04:33PM

14
#59 - Reuben Narkwo / reubwo

03/29/2017 at 08:20PM

14
#60 - George / Vge0rge

04/06/2017 at 11:05PM

14
#61 - yukkiy_guitar / yukkiy_guitar

04/09/2017 at 01:08PM

14
#62 - Kevin Ash / ashkevinm

04/11/2017 at 08:21PM

14
#63 - Brian Hall / _bruab_

04/13/2017 at 03:51PM

15
#64 - Solomon / Trugbildjaeger

04/15/2017 at 01:39PM

15
#65 - :q / AndyColonQ

04/18/2017 at 12:20AM

16
#66 - Jan Bundesmann / ixjab

03/15/2017 at 07:55AM

16
#67 - Kristian Haug / krimhaug

03/15/2017 at 09:48AM

16
#68 - jinx balotchnik / balotchnik

03/23/2017 at 02:25AM

16
#69 - Oscar 🐧 / GraveRaven

03/28/2017 at 04:18PM

16
#70 - やよい / 0x841

03/29/2017 at 04:21PM

16
#71 - Dhruva Sagar / dhruvasagar

04/03/2017 at 06:14AM

16
#72 - ネギ / NegiGreenWhite

04/07/2017 at 03:36PM

16
#73 - ephemient / ephemient

04/15/2017 at 06:50AM

17
#74 - Stephan Bugnon / stephanbugnon

03/17/2017 at 02:52PM

17
#75 - Pradeep Kumar / pradeep6kumar

04/02/2017 at 05:55PM

17
#76 - 馬的愛人 / felipeanchieta_

04/08/2017 at 02:12PM

18
#77 - Anoop Kumar / anooplive

03/15/2017 at 01:03AM

18
#78 - John Mahowald / JohnMahowald

03/15/2017 at 06:34PM

18
#79 - Mitchell / Spitchell

03/16/2017 at 08:38AM

18
#80 - Constantine / ConstantineHatz

03/16/2017 at 03:28PM

18
#81 - Mads Jensen / mads_je

03/17/2017 at 02:26PM

18
#82 - evilmoe ☮ / evilmoe

03/17/2017 at 08:32PM

18
#83 - Andreas Anderbach / AAnderbach

03/19/2017 at 11:42AM

18
#84 - arun mukundan / manyids2

03/22/2017 at 01:00PM

18
#85 - caplod / caplod

03/24/2017 at 01:18PM

18
#86 - JerryLee / varXinYuan

04/05/2017 at 09:54AM

18
#87 - Alec Zhang / alecjzhang

04/18/2017 at 11:00PM

18
#88 - Juha Paatelma / jpaatelm

04/20/2017 at 09:00AM

19
#89 - kim🤔 / kimception

03/17/2017 at 10:05PM

19
#90 - Abhishek Amberkar / greenmang0

03/26/2017 at 01:13PM

19
#91 - Atsushi Terada / terada_atsushi

03/29/2017 at 12:31PM

19
#92 - raffitz / raffitz

04/19/2017 at 05:30PM

20
#93 - coryknapp / coryknapp

03/16/2017 at 06:30AM

20
#94 - Milovan Zogovic / zogash

04/13/2017 at 07:08AM

21
#95 - Eric Coleman / EpicColeman

03/15/2017 at 05:46PM

21
#96 - Ryan Jarrett / texmexas

04/03/2017 at 02:50PM

27
#97 - Colin Jacobs / coljac

03/15/2017 at 12:32AM

28
#98 - Rodrigo García / garcialeonrodri

04/01/2017 at 04:46PM

30
#99 - Souvik maji / SouvikMaji94

03/19/2017 at 11:49AM

31
#100 - boggs / b_ggs

03/17/2017 at 02:52AM

33
#101 - Bruce Park / bpark0

04/16/2017 at 10:12PM

73
#102 - Naz Malik / nazwhale

04/20/2017 at 08:10AM