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):
16
#181 - Ron Alexssen / @Ralexhere

10/18/2017 at 04:36PM

16
#182 - Bennett / @bennettbackward

12/20/2018 at 07:53AM

17
#183 - Stephan Bugnon / @stephanbugnon

03/17/2017 at 02:52PM

17
#184 - Pradeep Kumar ๐Ÿ‡ฎ๐Ÿ‡ณ๐Ÿ‡ฎ๐Ÿ‡ณ๐Ÿ‡ฎ๐Ÿ‡ณ๐Ÿ‡ฎ๐Ÿ‡ฑ๐Ÿ‡ฎ๐Ÿ‡ฑ๐Ÿ‡ฎ๐Ÿ‡ฑ / @pradeep6kumar

04/02/2017 at 05:55PM

17
#185 - ้ฆฌ็š„ๆ„›ไบบ / @felipeanchieta_

04/08/2017 at 02:12PM

17
#186 - wort / @rtiago98

05/06/2017 at 02:37PM

17
#187 - Codingpotato / @codingpotato

05/07/2017 at 08:42AM

17
#188 - python-tweepy / @python_tweepy

05/15/2017 at 01:43AM

17
#189 - Kyouma / @kyoumaJohn

05/19/2017 at 01:36PM

17
#190 - Carl Egbert / @CarlOEgbert

06/09/2017 at 07:16AM

17
#191 - Jacob Buete / @JBuete

07/03/2017 at 12:29AM

17
#192 - Paul Inc / @hiniol1982

07/13/2017 at 03:35PM

17
#193 - Robert Max Williams / @MaxPhurich

09/11/2017 at 10:57PM

17
#194 - Petar Saulic / @gorillawarfare9

11/05/2017 at 12:05AM

17
#195 - Paul Draghicescu / @pdragy

03/22/2018 at 03:20PM

17
#196 - timonegk / @timonegk

11/25/2018 at 08:46PM

17
#197 - Phoon / @justflashhim

05/11/2019 at 02:51PM

18
#198 - Anoop Kumar / @anooplive

03/15/2017 at 01:03AM

18
#199 - John Mahowald / @JohnMahowald

03/15/2017 at 06:34PM

18
#200 - Mitchell / @Spitchell

03/16/2017 at 08:38AM

18
#201 - Constantine / @ConstantineHatz

03/16/2017 at 03:28PM

18
#202 - Mads Jensen / @mads_je

03/17/2017 at 02:26PM

18
#203 - evilmoe โ˜ฎ / @evilmoe

03/17/2017 at 08:32PM

18
#204 - Andreas Anderbach / @AAnderbach

03/19/2017 at 11:42AM

18
#205 - arun mukundan / @manyids2

03/22/2017 at 01:00PM

18
#206 - caplod / @caplod

03/24/2017 at 01:18PM

18
#207 - JerryLee / @varXinYuan

04/05/2017 at 09:54AM

18
#208 - Alec Zhang / @alecjzhang

04/18/2017 at 11:00PM

18
#209 - Juha Paatelma / @jpaatelm

04/20/2017 at 09:00AM

18
#210 - Sean / @seanmcclory

04/24/2017 at 05:28AM