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 239 remaining solutions by signing in and submitting your own entry
#240 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

240 active golfers, 711 entries

Leaderboard (lowest score wins):
13
#121 - Dax / @zacoxi

11/09/2018 at 06:17AM

13
#122 - name / @name65894813

11/19/2018 at 06:05PM

13
#123 - Mihai / @mihaicristiant

12/04/2018 at 01:58PM

13
#124 - band / @band26376522

01/26/2019 at 08:40PM

13
#125 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 09:13AM

13
#126 - alekfed / @alek_fed

04/15/2019 at 01:22PM

13
#127 - Grant / @grant_7788

05/07/2019 at 07:05AM

13
#128 - james_bunch / @james_bunch

05/12/2019 at 07:55AM

13
#129 - Дима / @dimkino

05/30/2019 at 07:24PM

14
#130 - James / @Dronak

03/15/2017 at 12:59AM

14
#131 - Alexander Bessonov / @nonsleepr

03/15/2017 at 05:09AM

14
#132 - AleksandarTrifunovic / @akstrfn

03/15/2017 at 09:05AM

14
#133 - Dimitar Ivanov / @dimisthoughts

03/19/2017 at 05:58PM

14
#134 - Jakob / @jajob

03/21/2017 at 11:23AM

14
#135 - Mark Brody / @_markbrody

03/24/2017 at 02:58AM

14
#136 - BlackCap / @BlackCapCoder

03/24/2017 at 04:33PM

14
#137 - Reuben Narkwo / @reubwo

03/29/2017 at 08:20PM

14
#138 - George / @Vge0rge

04/06/2017 at 11:05PM

14
#139 - yukkiy_guitar / @yukkiy_guitar

04/09/2017 at 01:08PM

14
#140 - 20speedvegan / @ashkevinm

04/11/2017 at 08:21PM

14
#141 - Brian Hall / @_bruab_

04/13/2017 at 03:51PM

14
#142 - jakeroberts / @jakeroberts

05/20/2017 at 03:04PM

14
#143 - Luke Bryant / @LukeBryant55

10/08/2017 at 11:20AM

14
#144 - Stephen Betts / @stephenbetts

10/12/2017 at 09:33PM

14
#145 - John C Shea / @MHSSachems

01/29/2018 at 11:56AM

14
#146 - Arijus / @argshook

02/09/2018 at 09:44AM

14
#147 - LC / @leeren

03/02/2018 at 04:17AM

14
#148 - Norbert / @mullno

06/26/2018 at 07:30PM

15
#149 - Solomon / @Trugbildjaeger

04/15/2017 at 01:39PM

15
#150 - :q / @AndyColonQ

04/18/2017 at 12:20AM