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

291 active golfers, 865 entries

Leaderboard (lowest score wins):
13
#151 - Jean George / @JeanGeo20504212

10/02/2021 at 07:31PM

13
#152 - x03n046 / @x03n046

06/08/2022 at 02:12AM

13
#153 - Alex / @AlexanderHeatl2

07/07/2022 at 06:31PM

13
#154 - cqjxx / @cqjxx1

07/19/2022 at 01:06AM

13
#155 - Brandon / @Brandon10678836

08/26/2022 at 01:09PM

13
#156 - Janzen / @__Coos

10/04/2022 at 11:22AM

13
#157 - Mrmclarrinson / @mrmclarrinson

12/14/2022 at 11:04AM

13
#158 - vladanscy / @vladanscy

02/20/2023 at 09:42PM

13
#159 - e_e / @eleloi

02/20/2023 at 11:21PM

13
#160 - FirstModus / @Nolimimer

04/10/2023 at 09:23AM

13
#161 - someone / @IKvacenok

06/17/2023 at 12:04PM

13
#162 - moh ayaya / @AyayaMoh

09/25/2023 at 05:31PM

13
#163 - Luoyb / @Luoyb

11/17/2023 at 04:46AM

13
#164 - Peppa Pig / @PeppaPigSg

07/02/2024 at 09:44AM

13
#165 - nickGPT / @nickandbro

08/28/2024 at 02:55AM

14
#166 - James / @Dronak

03/15/2017 at 12:59AM

14
#167 - Alexander Bessonov / @nonsleepr

03/15/2017 at 05:09AM

14
#168 - AleksandarTrifunovic / @akstrfn

03/15/2017 at 09:05AM

14
#169 - Dimitar Ivanov / @dimisthoughts

03/19/2017 at 05:58PM

14
#170 - Jakob / @jajob

03/21/2017 at 11:23AM

14
#171 - Mark Brody / @_markbrody

03/24/2017 at 02:58AM

14
#172 - BlackCap / @BlackCapCoder

03/24/2017 at 04:33PM

14
#173 - Reuben Narkwo / @reubwo

03/29/2017 at 08:20PM

14
#174 - George / @Vge0rge

04/06/2017 at 11:05PM

14
#175 - yukkiy_guitar / @yukkiy_guitar

04/09/2017 at 01:08PM

14
#176 - 20speedvegan / @ashkevinm

04/11/2017 at 08:21PM

14
#177 - Brian Hall / @_bruab_

04/13/2017 at 03:51PM

14
#178 - jakeroberts / @jakeroberts

05/20/2017 at 03:04PM

14
#179 - Luke Bryant / @LukeBryant55

10/08/2017 at 11:20AM

14
#180 - Stephen Betts / @stephenbetts

10/12/2017 at 09:33PM