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 167 remaining solutions by signing in and submitting your own entry
#168 caplod / caplod - Score: 18 - 03/24/17 @ 13:18
qala.<Esc>f.xlx+q7@aZZ

0 comments


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

0 comments


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

0 comments


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

0 comments


#172 Sean / seanmcclory - Score: 18 - 04/24/17 @ 05:28
qqla.<Esc>f.xlx+q7@qZZ

0 comments


#173 Edouard Piette / EdPiette - Score: 18 - 05/04/17 @ 15:11
qqla.<Esc>f.xl.+q7@qZZ

0 comments


#174 brucesnyder / brucesnyder - Score: 18 - 05/04/17 @ 15:35
qqla.<Esc>f.xlx+q7@qZZ

0 comments


#175 Jenny Johnson / Kippz07 - Score: 18 - 05/06/17 @ 17:16
qqla.<Esc>f.xlx+q7@qZZ

0 comments


#176 Brad Brown / zoocat - Score: 18 - 05/07/17 @ 14:04
qqla.<Esc>f.xlx+q7@qZZ

0 comments


#177 Nathan J Slaughter / NjSlaughter - Score: 18 - 05/24/17 @ 02:59
qqla.<Esc>f.xlx+q7@qZZ

0 comments


#178 James Houghton / jamesthoughton - Score: 18 - 07/20/17 @ 15:48
qqf.xT,Pf%x+q7@qZZ

0 comments


#179 Tom Taylor / larsonsduck - Score: 18 - 07/27/17 @ 10:45
qqf.x2hPf%x<CR>q8@qZZ

0 comments


#180 Jeff / RealJeffIrwin - Score: 18 - 09/29/17 @ 13:50
qqla.<Esc>f.xlx+q7@qZZ

0 comments


#181 TpouHuK / TpouHuK_ - Score: 18 - 02/02/18 @ 19:01
qqla.<Esc>f.xlx+q7@qZZ

0 comments


#182 Michael D Jones / biotechjones - Score: 18 - 02/03/18 @ 21:28
l<C-V>8jA.<Esc>2f.<C-V>8jxl.ZZ

0 comments


#183 renygma / r3nygma - Score: 18 - 02/06/18 @ 20:49
qqla.<Esc>f.xlx+q7@qZZ

0 comments


#184 Kaydo Alders / Yousousen - Score: 18 - 03/16/18 @ 10:35
qqwa.<Esc>f.xlx+q7@qZZ

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


#189 Luke DeWitt / lanewalkerx - Score: 19 - 04/25/17 @ 22:26
qala.<Esc>3lxlxj0q7@aZZ

0 comments


#190 Ryan Coopersmith / RyanCoopersmit1 - Score: 19 - 06/04/17 @ 17:03
qqla.<Esc>f.xlxj0q7@qZZ

0 comments


#191 sebastian pech / specht08 - Score: 19 - 06/08/17 @ 18:10
qq0la.<Esc>f.xlxjq7@qZZ

0 comments


#192 Prithviraj Patil / dummyprithviraj - Score: 19 - 12/03/17 @ 16:07
qawa.<Esc>t.lxlx<CR>q7@aZZ

0 comments


#193 martin tourneboeuf / martintournebo1 - Score: 19 - 02/07/18 @ 20:00
qqla.<Esc>lllxlxWq7@qZZ

0 comments


#194 Sean Earle / Hell_Rok - Score: 19 - 05/04/18 @ 07:10
qbla.<Esc>elxlxj0q7@bZZ

0 comments


#195 Jonathan Camilleri / Too_Many_Taken - Score: 19 - 05/26/18 @ 11:24
:%norm f%xF.xF,p<CR>ZZ

0 comments


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

0 comments


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

0 comments


#198 Igor Melnyk / IrodrigesM - Score: 20 - 04/28/17 @ 13:08
qq^2wi.<Right><Right><Del><Right><Del><Esc>jq7@qZZ

0 comments


#199 IgnatiusMcGowan / IgnatiusMcGowan - Score: 20 - 05/23/17 @ 23:03
qq2li.<Esc>f.xlx<Down>0q7@qZZ

0 comments


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

0 comments


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

0 comments


#202 Alexander Gryson / agryson - Score: 21 - 05/01/17 @ 14:51
4l<C-V>G4lx3hp:%s/%//g<CR>ZZ

0 comments


#203 Elliott Mantock / elGatoMantocko - Score: 22 - 04/30/17 @ 19:11
qqf,a.<Esc>f.xf%xj^@qq@qZZ

0 comments


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

0 comments


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

0 comments


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


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


#208 Benny / mail2benny - Score: 37 - 06/15/17 @ 10:00
llll<C-V>jjjjjjjdhhhpllll<C-V>jjjjjjjjjjd:wq<CR>

0 comments


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

209 active golfers, 624 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