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

261 active golfers, 765 entries

Leaderboard (lowest score wins):
20
#241 - Milovan Zogovic / @zogash

04/13/2017 at 07:08AM

20
#242 - Igor Melnyk / @IrodrigesM

04/28/2017 at 01:08PM

20
#243 - IgnatiusMcGowan / @IgnatiusMcGowan

05/23/2017 at 11:03PM

20
#244 - Shunichi Kanade / @shunkana

12/02/2018 at 09:50AM

20
#245 - Aaron / @_Lordofthevoid_

12/02/2019 at 06:08PM

21
#246 - Eric Coleman / @EpicColeman

03/15/2017 at 05:46PM

21
#247 - Ryan Jarrett / @texmexas

04/03/2017 at 02:50PM

21
#248 - Alexander Gryson / @agryson

05/01/2017 at 02:51PM

21
#249 - wrglprmft / @wrglprmft

01/26/2019 at 02:03PM

21
#250 - Mike C / @StrixVariaXIX

04/22/2019 at 04:20PM

22
#251 - Elliott Mantock / @elGatoMantocko

04/30/2017 at 07:11PM

24
#252 - d8d90d / @d8d90d

08/19/2018 at 12:21AM

27
#253 - Colin Jacobs / @coljac

03/15/2017 at 12:32AM

27
#254 - Hugo / @szeyattai

08/18/2018 at 12:18PM

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

04/01/2017 at 04:46PM

30
#256 - Souvik maji / @SouvikMaji94

03/19/2017 at 11:49AM

31
#257 - boggs / @b_ggs

03/17/2017 at 02:52AM

37
#258 - Benny / @b1299709

06/15/2017 at 10:00AM

39
#259 - GrimmT / @GrimmT10

12/19/2019 at 08:28PM

42
#260 - Vim Golfer / @VimGolfer6

09/07/2019 at 09:52AM

73
#261 - Naz Malik / @nazwhale

04/20/2017 at 08:10AM