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
#31 - Gary Carter / @_carterg_

03/24/2017 at 06:42PM

13
#32 - Tyler Holien / @tylerholien

03/24/2017 at 09:23PM

13
#33 - retro / @tryphopp

03/26/2017 at 03:02AM

13
#34 - Nachiket Bhave / @nachiketvb

03/27/2017 at 01:36PM

13
#35 - Daniel / @Daniel00288663

03/27/2017 at 02:26PM

13
#36 - D W / @dweij1

03/29/2017 at 03:07PM

13
#37 - JTR / @meDOT__name__

03/30/2017 at 01:41AM

13
#38 - Maximilian Albert / @cilix42

03/30/2017 at 01:42AM

13
#39 - Birger / @Birger_Ni

03/30/2017 at 09:21AM

13
#40 - Pablo R. Dinella / @pablordinella

03/30/2017 at 01:02PM

13
#41 - Quark / @PuzzleQuark

04/01/2017 at 06:35PM

13
#42 - John Turner / @turnerOnTheGrid

04/02/2017 at 07:20PM

13
#43 - Rao Zvorovski / @RaoZvorovski

04/02/2017 at 07:27PM

13
#44 - Remus Dalrymple / @bornintheflames

04/08/2017 at 12:21AM

13
#45 - Dmitriy / @dm_alt

04/08/2017 at 10:12AM

13
#46 - Michael Robinson / @laxdog

04/11/2017 at 12:34PM

13
#47 - Sebastian Rapp / @se_rapp

04/12/2017 at 06:55PM

13
#48 - Colby Hamilton / @ColbyHamilton5

04/17/2017 at 02:13PM

13
#49 - 梧桐王子 / @WutongYujie

04/20/2017 at 01:48AM

13
#50 - Tom BP / @ThosBP

04/20/2017 at 10:27AM

13
#51 - Jason Hooper 🇨🇦 / @jasonincanada

04/22/2017 at 09:23PM

13
#52 - Apostolis Hardalias / @a_hardalias

04/23/2017 at 04:11PM

13
#53 - Rami Hovi / @hacker_lawyer

04/24/2017 at 03:19AM

13
#54 - Ionel Manolache / @namnoi38

04/25/2017 at 02:53PM

13
#55 - Anthony BERNARD / @TweetTontony

04/26/2017 at 11:06PM

13
#56 - Anton Matveev / @aush_tx

04/27/2017 at 06:16PM

13
#57 - Stefan Uhl / @der_wuschl

04/28/2017 at 09:32AM

13
#58 - Doug Chan / @Coufu

04/28/2017 at 04:10PM

13
#59 - Russell Ball / @rtball2

04/29/2017 at 08:25PM

13
#60 - Chris Robertson / @chrisxrobertson

04/30/2017 at 01:06PM