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):
18
#241 - Tom Taylor / @larsonsduck

07/27/2017 at 10:45AM

18
#242 - Geoff / @RealGeoffErwin

09/29/2017 at 01:50PM

18
#243 - TpouHuK / @TpouHuK_

02/02/2018 at 07:01PM

18
#244 - Michael D Jones / @biotechjones

02/03/2018 at 09:28PM

18
#245 - renygma / @r3nygma

02/06/2018 at 08:49PM

18
#246 - Kaydo Alders / @Yousousen

03/16/2018 at 10:35AM

18
#247 - Jurica / @Jurica34581259

11/16/2018 at 12:03PM

18
#248 - Oren Koriat / @KoriatOren

12/23/2018 at 09:33AM

18
#249 - Slawek Ligus / @ooz_ie

01/15/2019 at 11:36PM

18
#250 - theBecwar / @thebecwar

08/19/2019 at 08:18PM

18
#251 - RockerZZY / @rocker_zzy

06/09/2020 at 11:08PM

18
#252 - :wq / @write_quit_22

06/26/2021 at 03:39AM

18
#253 - Olivier Bégassat / @zk_evm

06/12/2023 at 11:27PM

18
#254 - jonas-grobe / @jonas-grobe

02/03/2024 at 08:58PM

19
#255 - kim🤔 / @kimception

03/17/2017 at 10:05PM

19
#256 - Abhishek Amberkar / @greenmang0

03/26/2017 at 01:13PM

19
#257 - Atsushi Terada / @terada_atsushi

03/29/2017 at 12:31PM

19
#258 - raffitz / @raffitz

04/19/2017 at 05:30PM

19
#259 - Luke DeWitt / @lanewalkerx

04/25/2017 at 10:26PM

19
#260 - Ryan Coopersmith / @RyanCoopersmit1

06/04/2017 at 05:03PM

19
#261 - sebastian pech / @specht08

06/08/2017 at 06:10PM

19
#262 - Prithviraj Patil / @dummyprithviraj

12/03/2017 at 04:07PM

19
#263 - martin tourneboeuf / @martintournebo1

02/07/2018 at 08:00PM

19
#264 - Sean Earle / @Hell_Rok

05/04/2018 at 07:10AM

19
#265 - Jonathan Camilleri / @Too_Many_Taken

05/26/2018 at 11:24AM

19
#266 - Laurent Atlan / @laurentatlan1

04/14/2019 at 12:14AM

20
#267 - Cory Knapp / @coryknapp

03/16/2017 at 06:30AM

20
#268 - Milovan Zogovic / @zogash

04/13/2017 at 07:08AM

20
#269 - Igor Melnyk / @IrodrigesM

04/28/2017 at 01:08PM

20
#270 - IgnatiusMcGowan / @IgnatiusMcGowan

05/23/2017 at 11:03PM