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):
20
#271 - Shunichi Kanade / @shunkana

12/02/2018 at 09:50AM

20
#272 - Aaron / @_Lordofthevoid_

12/02/2019 at 06:08PM

20
#273 - pikjes / @pikjes2

07/16/2021 at 11:32AM

21
#274 - Eric Coleman / @EpicColeman

03/15/2017 at 05:46PM

21
#275 - Ryan Jarrett / @texmexas

04/03/2017 at 02:50PM

21
#276 - Alexander Gryson / @agryson

05/01/2017 at 02:51PM

21
#277 - wrglprmft / @wrglprmft

01/26/2019 at 02:03PM

21
#278 - Mike C / @StrixVariaXIX

04/22/2019 at 04:20PM

22
#279 - Elliott Mantock / @elGatoMantocko

04/30/2017 at 07:11PM

24
#280 - d8d90d / @d8d90d

08/19/2018 at 12:21AM

27
#281 - Colin Jacobs / @coljac

03/15/2017 at 12:32AM

27
#282 - Hugo / @szeyattai

08/18/2018 at 12:18PM

28
#283 - Rodrigo García / @garcialeonrodri

04/01/2017 at 04:46PM

30
#284 - Souvik maji / @SouvikMaji94

03/19/2017 at 11:49AM

31
#285 - boggs / @b_ggs

03/17/2017 at 02:52AM

35
#286 - vimgolfaccfekxh / @vimgolfaccfekxh

10/19/2022 at 11:59PM

37
#287 - Benny / @b1299709

06/15/2017 at 10:00AM

39
#288 - GrimmT / @GrimmT10

12/19/2019 at 08:28PM

42
#289 - Vim Golfer / @VimGolfer6

09/07/2019 at 09:52AM

45
#290 - Jakob Föger / @drvolcano86

02/16/2023 at 04:42PM

73
#291 - Naz Malik / @nazwhale

04/20/2017 at 08:10AM