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

261 active golfers, 765 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

13
#130 - majo senf / @majo_senf

06/18/2019 at 10:08AM

13
#131 - mkaminaga / @mkmng3

07/03/2019 at 04:55AM

13
#132 - Chester Yap / @Chest_ErYap

08/12/2019 at 01:47PM

13
#133 - Miłosz Łakomy / @foobar01123

08/14/2019 at 05:07PM

13
#134 - Viktor Styrud / @ViktorStyrud

10/16/2019 at 09:31AM

13
#135 - vimgolfer / @vimgolfer7

10/22/2019 at 03:10AM

13
#136 - Mario Olofo / @mario_olofo

10/24/2019 at 03:06AM

13
#137 - Lory / @Lory46845742

11/14/2019 at 10:08AM

13
#138 - James Casey / @hanavi

12/22/2019 at 04:02AM

13
#139 - 임덕윤 / @SnLHUF5ZYJXqI1m

01/12/2020 at 10:29AM

13
#140 - Delon / @delonleonard

01/13/2020 at 11:33PM

13
#141 - Jason Neylon / @jasonneylon

03/16/2020 at 07:22PM

13
#142 - countime / @countime1

03/17/2020 at 04:34AM

13
#143 - Jason / @roosjason

06/02/2020 at 10:25AM

13
#144 - Tanzeel Kazi / @tanzeelkazi

08/24/2020 at 05:15PM

14
#145 - James / @Dronak

03/15/2017 at 12:59AM

14
#146 - Alexander Bessonov / @nonsleepr

03/15/2017 at 05:09AM

14
#147 - AleksandarTrifunovic / @akstrfn

03/15/2017 at 09:05AM

14
#148 - Dimitar Ivanov / @dimisthoughts

03/19/2017 at 05:58PM

14
#149 - Jakob / @jajob

03/21/2017 at 11:23AM

14
#150 - Mark Brody / @_markbrody

03/24/2017 at 02:58AM