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

233 active golfers, 685 entries

Leaderboard (lowest score wins):
19
#211 - sebastian pech / @specht08

06/08/2017 at 06:10PM

19
#212 - Prithviraj Patil / @dummyprithviraj

12/03/2017 at 04:07PM

19
#213 - martin tourneboeuf / @martintournebo1

02/07/2018 at 08:00PM

19
#214 - Sean Earle / @Hell_Rok

05/04/2018 at 07:10AM

19
#215 - Jonathan Camilleri / @Too_Many_Taken

05/26/2018 at 11:24AM

20
#216 - Cory Knapp / @coryknapp

03/16/2017 at 06:30AM

20
#217 - Milovan Zogovic / @zogash

04/13/2017 at 07:08AM

20
#218 - Igor Melnyk / @IrodrigesM

04/28/2017 at 01:08PM

20
#219 - IgnatiusMcGowan / @IgnatiusMcGowan

05/23/2017 at 11:03PM

20
#220 - Shunichi Kanade / @shunkana

12/02/2018 at 09:50AM

21
#221 - Eric Coleman / @EpicColeman

03/15/2017 at 05:46PM

21
#222 - Ryan Jarrett / @texmexas

04/03/2017 at 02:50PM

21
#223 - Alexander Gryson / @agryson

05/01/2017 at 02:51PM

21
#224 - wrglprmft / @wrglprmft

01/26/2019 at 02:03PM

22
#225 - Elliott Mantock / @elGatoMantocko

04/30/2017 at 07:11PM

24
#226 - d8d90d / @d8d90d

08/19/2018 at 12:21AM

27
#227 - Colin Jacobs / @coljac

03/15/2017 at 12:32AM

27
#228 - Hugo / @szeyattai

08/18/2018 at 12:18PM

28
#229 - Rodrigo GarcĂ­a / @garcialeonrodri

04/01/2017 at 04:46PM

30
#230 - Souvik maji / @SouvikMaji94

03/19/2017 at 11:49AM

31
#231 - boggs / @b_ggs

03/17/2017 at 02:52AM

37
#232 - Benny / @b1299709

06/15/2017 at 10:00AM

73
#233 - Naz Malik / @nazwhale

04/20/2017 at 08:10AM