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):
88
#91 - Markus / @dayshade_7

08/05/2022 at 02:27PM

88
#92 - Jean Michel Furtado M'Peko / @furtadojean1

09/30/2022 at 01:33AM

90
#93 - Math Jock / @mathjock

09/02/2022 at 11:35AM

92
#94 - MerryElvira / @ElviraBTC

09/21/2022 at 01:38PM

94
#95 - potatol33t / @potatol33t

08/03/2022 at 08:11PM

97
#96 - Sixnfuebxkf / @Ilikethpieth

08/10/2022 at 11:43PM

97
#97 - Ratkovszki István / @RatkovszkiIstvn

09/03/2022 at 11:40PM

101
#98 - TomoProg / @tomoprog_xxx

09/16/2022 at 02:46PM

102
#99 - Jonny / @Jonnytron

09/02/2022 at 12:03AM

108
#100 - sap / @sap38838304

09/15/2022 at 04:57AM

111
#101 - h / @tgen22334

08/06/2022 at 02:47PM

111
#102 - Jingshan Yin / @Jingshan1989

08/09/2022 at 10:28AM

111
#103 - Rob Donnelly / @RobDonnelly47

09/12/2022 at 04:24PM

116
#104 - fubuki shiro / @Yuhao_fubuki

08/08/2022 at 09:07AM

118
#105 - Ravi S Sinha / @ambidextrousTx

08/29/2022 at 11:53PM

118
#106 - K.Takao / @kit_tko

09/16/2022 at 02:55PM

121
#107 - Nicolas / @martinni39

09/25/2022 at 06:13AM

122
#108 - s / @s68202273

09/06/2022 at 06:07PM

135
#109 - Jeremy Perna / @jperna7254

08/05/2022 at 11:54PM

142
#110 - 💻:~/Karl_Webster / @KTW727

09/08/2022 at 07:33AM

147
#111 - Jason_L / @ZishengLiang

08/30/2022 at 12:51AM

151
#112 - Eric Briand / @eric_briand

08/05/2022 at 02:10PM

153
#113 - 猪猪猪珠珠 / @MdKaLCZeqxwZvZs

08/05/2022 at 05:46PM

157
#114 - Anas Alkhatib / @_anasalkhatib

09/21/2022 at 07:12PM

157
#115 - Alfie Richards / @Ajjrichards

09/23/2022 at 03:06PM

159
#116 - dhrubajyoti ghosh / @dhruba02

09/17/2022 at 09:23AM

161
#117 - SH / @SH37248866

09/21/2022 at 07:18PM

171
#118 - Alpha Extrema / @AlphaExtrema

08/20/2022 at 07:54AM

380
#119 - Anthony Chao / @AnthonyRChao

09/08/2022 at 02:45AM

392
#120 - wwy202208 / @wwy202208

08/26/2022 at 01:58AM