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

224 active golfers, 664 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

14
#123 - James / @Dronak

03/15/2017 at 12:59AM

14
#124 - Alexander Bessonov / @nonsleepr

03/15/2017 at 05:09AM

14
#125 - AleksandarTrifunovic / @akstrfn

03/15/2017 at 09:05AM

14
#126 - Dimitar Ivanov / @dimisthoughts

03/19/2017 at 05:58PM

14
#127 - Jakob / @jajob

03/21/2017 at 11:23AM

14
#128 - Mark Brody / @_markbrody

03/24/2017 at 02:58AM

14
#129 - BlackCap / @BlackCapCoder

03/24/2017 at 04:33PM

14
#130 - Reuben Narkwo / @reubwo

03/29/2017 at 08:20PM

14
#131 - George / @Vge0rge

04/06/2017 at 11:05PM

14
#132 - yukkiy_guitar / @yukkiy_guitar

04/09/2017 at 01:08PM

14
#133 - 20speedvegan / @ashkevinm

04/11/2017 at 08:21PM

14
#134 - Brian Hall / @_bruab_

04/13/2017 at 03:51PM

14
#135 - jakeroberts / @jakeroberts

05/20/2017 at 03:04PM

14
#136 - Luke Bryant / @LukeBryant55

10/08/2017 at 11:20AM

14
#137 - Stephen Betts / @stephenbetts

10/12/2017 at 09:33PM

14
#138 - John C Shea / @MHSSachems

01/29/2018 at 11:56AM

14
#139 - Arijus / @argshook

02/09/2018 at 09:44AM

14
#140 - LC / @leeren

03/02/2018 at 04:17AM

14
#141 - Norbert / @mullno

06/26/2018 at 07:30PM

15
#142 - Solomon / @Trugbildjaeger

04/15/2017 at 01:39PM

15
#143 - :q / @AndyColonQ

04/18/2017 at 12:20AM

16
#144 - Jan Bundesmann / @janbundesmann

03/15/2017 at 07:55AM

16
#145 - Kristian Haug / @krimhaug

03/15/2017 at 09:48AM

16
#146 - jinx balotchnik / @balotchnik

03/23/2017 at 02:25AM

16
#147 - Oscar๐ŸŠ / @GraveRaven

03/28/2017 at 04:18PM

16
#148 - ใ‚„ใ‚ˆใ„ / @0x841

03/29/2017 at 04:21PM

16
#149 - Dhruva Sagar / @dhruvasagar

04/03/2017 at 06:14AM

16
#150 - ใƒใ‚ฎ / @NegiGreenWhite

04/07/2017 at 03:36PM