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
#91 - sehe / @sehetw

10/10/2017 at 02:26PM

13
#92 - Charlie OConor / @charlieoconor

10/17/2017 at 06:09PM

13
#93 - Christian Bauer / @Christi55765900

10/18/2017 at 01:22PM

13
#94 - Turkey Man / @lvturkeyman

11/08/2017 at 03:01PM

13
#95 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 08:56AM

13
#96 - BareTull / @BareTull3

12/07/2017 at 03:56PM

13
#97 - Sage san / @sagesancast

12/18/2017 at 05:12PM

13
#98 - Luke Parsons / @lukeparsons

12/27/2017 at 05:19PM

13
#99 - BarbaJol / @drpproteus

12/31/2017 at 10:10AM

13
#100 - Dominic Z / @thammaaa

01/16/2018 at 03:25PM

13
#101 - Simon Cheng / @bambooraccoon

01/17/2018 at 03:51PM

13
#102 - ParasamGateZero / @ParasamGateZero

01/22/2018 at 02:48AM

13
#103 - brandon salmon / @Exiledz

01/28/2018 at 11:00AM

13
#104 - bocadillodeatun / @bocadillodeatun

01/28/2018 at 02:07PM

13
#105 - GreenPinguin / @GreenPinguin2

03/12/2018 at 04:23PM

13
#106 - Lisa Ugray / @lisa_ugray

03/16/2018 at 12:18PM

13
#107 - vimthrowaway / @vimgolf_throw

03/31/2018 at 01:59PM

13
#108 - Guirec CORBEL / @GuirecCorbel

04/01/2018 at 12:15AM

13
#109 - DHM / @DHM29978992

04/14/2018 at 03:32AM

13
#110 - Ben Nak / @BbB8nNn

04/16/2018 at 03:06PM

13
#111 - platypusDancing / @platypusDancing

05/03/2018 at 05:37AM

13
#112 - Daniël De Koker / @daniel_koker

06/19/2018 at 08:16PM

13
#113 - 赤佐田奈葉 / @akasatanaha_

07/09/2018 at 07:02AM

13
#114 - niwatoco / @yoshitune9

07/19/2018 at 07:34PM

13
#115 - qed / @qed13308565

07/25/2018 at 04:34PM

13
#116 - Jeff / @sir_wiggles3

09/09/2018 at 07:04AM

13
#117 - Rasmus Bergström / @JRasmusBm

09/29/2018 at 09:55PM

13
#118 - Roger Bongers / @RogerBongers

10/05/2018 at 11:09PM

13
#119 - Benjamin Kiesl / @BenjaminKiesl

10/20/2018 at 03:23PM

13
#120 - vg / @vg53210350

10/28/2018 at 08:06PM