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 9v0062e3e96a000000000226

HS exam question

Convert the data to a python dictionary

Start file
e: 45.063 %
s: 42.182 %
a: 40.586 %
r: 30.316 %
o: 28.193 %
i: 27.897 %
l: 24.621 %
n: 23.124 %
t: 22.992 %
d: 17.676 %
u: 17.051 %
c: 14.648 %
y: 14.253 %
h: 12.986 %
p: 12.459 %
m: 12.130 %
b: 10.253 %
g: 10.204 %
k: 9.118 %
w: 7.456 %
f: 7.077 %
v: 5.003 %
z: 2.271 %
x: 1.860 %
j: 1.366 %
q: 0.741 %
End file
letters = {
  "e": 0.45063,
  "s": 0.42182,
  "a": 0.40586,
  "r": 0.30316,
  "o": 0.28193,
  "i": 0.27897,
  "l": 0.24621,
  "n": 0.23124,
  "t": 0.22992,
  "d": 0.17676,
  "u": 0.17051,
  "c": 0.14648,
  "y": 0.14253,
  "h": 0.12986,
  "p": 0.12459,
  "m": 0.12130,
  "b": 0.10253,
  "g": 0.10204,
  "k": 0.09118,
  "w": 0.07456,
  "f": 0.07077,
  "v": 0.05003,
  "z": 0.02271,
  "x": 0.01860,
  "j": 0.01366,
  "q": 0.00741
}

View Diff

1,26c1,28
< e: 45.063 %
< s: 42.182 %
< a: 40.586 %
< r: 30.316 %
< o: 28.193 %
< i: 27.897 %
< l: 24.621 %
< n: 23.124 %
< t: 22.992 %
< d: 17.676 %
< u: 17.051 %
< c: 14.648 %
< y: 14.253 %
< h: 12.986 %
< p: 12.459 %
< m: 12.130 %
< b: 10.253 %
< g: 10.204 %
< k: 9.118 %
< w: 7.456 %
< f: 7.077 %
< v: 5.003 %
< z: 2.271 %
< x: 1.860 %
< j: 1.366 %
< q: 0.741 %
---
> letters = {
>   "e": 0.45063,
>   "s": 0.42182,
>   "a": 0.40586,
>   "r": 0.30316,
>   "o": 0.28193,
>   "i": 0.27897,
>   "l": 0.24621,
>   "n": 0.23124,
>   "t": 0.22992,
>   "d": 0.17676,
>   "u": 0.17051,
>   "c": 0.14648,
>   "y": 0.14253,
>   "h": 0.12986,
>   "p": 0.12459,
>   "m": 0.12130,
>   "b": 0.10253,
>   "g": 0.10204,
>   "k": 0.09118,
>   "w": 0.07456,
>   "f": 0.07077,
>   "v": 0.05003,
>   "z": 0.02271,
>   "x": 0.01860,
>   "j": 0.01366,
>   "q": 0.00741
> }

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 120 remaining solutions by signing in and submitting your own entry
#121 Payton / @paytonward_ - Score: 442 - 09/11/22 @ 23:30
VGp<50-53>letters = {<NL>  "e": 0.45063,<NL>  "s": 0.42182,<NL>  "a": 0.40586,<NL>  "r": 0.30316,<NL>  "o": 0.28193,<NL>  "i": 0.27897,<NL>  "l": 0.24621,<NL>  "n": 0.23124,<NL>  "t": 0.22992,<NL>  "d": 0.17676,<NL>  "u": 0.17051,<NL>  "c": 0.14648,<NL>  "y": 0.14253,<NL>  "h": 0.12986,<NL>  "p": 0.12459,<NL>  "m": 0.12130,<NL>  "b": 0.10253,<NL>  "g": 0.10204,<NL>  "k": 0.09118,<NL>  "w": 0.07456,<NL>  "f": 0.07077,<NL>  "v": 0.05003,<NL>  "z": 0.02271,<NL>  "x": 0.01860,<NL>  "j": 0.01366,<NL>  "q": 0.00741<NL>}<Esc>[201~kjZZ

0 comments


Created by: @Marco73364768

121 active golfers, 490 entries

Leaderboard (lowest score wins):
69
#61 - James Casey / @hanavi

08/17/2022 at 01:59AM

69
#62 - Kevin Chen / @kevkevchen

09/15/2022 at 06:24AM

70
#63 - 阿部 / @l_abb

08/12/2022 at 07:13AM

70
#64 - Tommy Dew / @TommyDew5

08/30/2022 at 12:49PM

70
#65 - Johnny Urosevic / @GlazeGoose

09/03/2022 at 09:32AM

70
#66 - Никита Семёнов / @NiKoS1707

09/24/2022 at 07:59AM

72
#67 - Van / @dangtrivan15

08/28/2022 at 09:24AM

72
#68 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

09/26/2022 at 08:23AM

72
#69 - Andrew Morris / @andrew_morris

09/28/2022 at 07:37AM

72
#70 - Daniel Nägele / @debugloop

09/29/2022 at 06:42AM

73
#71 - Michael Prouty / @MProuts

08/10/2022 at 01:15AM

73
#72 - antosha417 / @antosha417

09/02/2022 at 03:24PM

75
#73 - xvczuwo / @xvczuwoa

08/01/2022 at 08:15PM

75
#74 - mika / @mika31120321

08/23/2022 at 09:38AM

76
#75 - Mika Dede / @xerv0n

09/02/2022 at 03:50AM

76
#76 - swann / @evertedsphere

09/02/2022 at 08:10AM

76
#77 - Matt DB / @MattDB12

09/13/2022 at 08:08PM

77
#78 - Johan Arrhen / @JoPeArrhen

09/24/2022 at 01:10PM

78
#79 - M Rais Fathin M / @raisfathin

08/06/2022 at 01:56AM

78
#80 - 'ymdarake / @ymdarake

08/24/2022 at 01:35PM

78
#81 - Kaustubh Murumkar / @k_austub_h

09/06/2022 at 06:12PM

79
#82 - Léo / @Leo58369183

08/13/2022 at 04:37PM

79
#83 - Nicolas / @nick4tech

09/05/2022 at 03:06PM

80
#84 - Daniel Enrico Botta / @danenbo

09/02/2022 at 02:11PM

81
#85 - damien / @GreatTestyTest

09/09/2022 at 12:01AM

81
#86 - Yusuf AKIN / @zerdeshtjuan

09/20/2022 at 08:57PM

83
#87 - Anthony Hein / @anthonynhein

07/31/2022 at 04:27PM

84
#88 - 王扎尔 / @wngzhr2

09/07/2022 at 10:58AM

86
#89 - 语冰者 / @darcysail

08/18/2022 at 04:30PM

87
#90 - Marco Santonastaso / @marco_snts

09/24/2022 at 03:58PM