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):
17
#181 - Phoon / @justflashhim

05/11/2019 at 02:51PM

18
#182 - Anoop Kumar / @anooplive

03/15/2017 at 01:03AM

18
#183 - John Mahowald / @JohnMahowald

03/15/2017 at 06:34PM

18
#184 - Mitchell / @Spitchell

03/16/2017 at 08:38AM

18
#185 - Constantine / @ConstantineHatz

03/16/2017 at 03:28PM

18
#186 - Mads Jensen / @mads_je

03/17/2017 at 02:26PM

18
#187 - evilmoe ☮ / @evilmoe

03/17/2017 at 08:32PM

18
#188 - Andreas Anderbach / @AAnderbach

03/19/2017 at 11:42AM

18
#189 - arun mukundan / @manyids2

03/22/2017 at 01:00PM

18
#190 - caplod / @caplod

03/24/2017 at 01:18PM

18
#191 - JerryLee / @varXinYuan

04/05/2017 at 09:54AM

18
#192 - Alec Zhang / @alecjzhang

04/18/2017 at 11:00PM

18
#193 - Juha Paatelma / @jpaatelm

04/20/2017 at 09:00AM

18
#194 - Sean / @seanmcclory

04/24/2017 at 05:28AM

18
#195 - Edouard Piette / @EdPiette

05/04/2017 at 03:11PM

18
#196 - brucesnyder / @brucesnyder

05/04/2017 at 03:35PM

18
#197 - Jenny Johnson / @Kippz07

05/06/2017 at 05:16PM

18
#198 - Brad Brown / @zoocat

05/07/2017 at 02:04PM

18
#199 - Nathan J Slaughter / @NjSlaughter

05/24/2017 at 02:59AM

18
#200 - James Houghton / @jamesthoughton

07/20/2017 at 03:48PM

18
#201 - Tom Taylor / @larsonsduck

07/27/2017 at 10:45AM

18
#202 - Geoff / @RealGeoffErwin

09/29/2017 at 01:50PM

18
#203 - TpouHuK / @TpouHuK_

02/02/2018 at 07:01PM

18
#204 - Michael D Jones / @biotechjones

02/03/2018 at 09:28PM

18
#205 - renygma / @r3nygma

02/06/2018 at 08:49PM

18
#206 - Kaydo Alders / @Yousousen

03/16/2018 at 10:35AM

18
#207 - Jurica / @Jurica34581259

11/16/2018 at 12:03PM

18
#208 - Oren Koriat / @KoriatOren

12/23/2018 at 09:33AM

18
#209 - Slawek Ligus / @ooz_ie

01/15/2019 at 11:36PM

19
#210 - kim🤔 / @kimception

03/17/2017 at 10:05PM