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):
57
#31 - Lory / @Lory46845742

07/31/2022 at 08:27AM

57
#32 - satetheus-vimgolf / @SVimgolf

08/03/2022 at 04:46PM

57
#33 - evertrasjp / @evertrasjp

08/07/2022 at 10:33AM

57
#34 - -kento / @k_masu

08/26/2022 at 07:53AM

57
#35 - Dr. Peťko / @PetkoDr

09/11/2022 at 02:16PM

57
#36 - Brian Leung / @brian_leung

09/18/2022 at 10:30PM

58
#37 - Name can't be blank. / @orangutanganga

08/18/2022 at 08:24AM

58
#38 - 비비빅 / @bibibig80714274

09/04/2022 at 03:53PM

59
#39 - James Houghton / @jamesthoughton

08/14/2022 at 04:05AM

59
#40 - Almond Crush / @TheAlmondCrush

08/21/2022 at 05:20AM

59
#41 - Desentcare / @ashuyali

08/24/2022 at 07:50PM

60
#42 - Marcin Radomski / @_dextero

08/06/2022 at 09:41PM

60
#43 - math is what I hate / @mpnmbn

09/20/2022 at 03:37PM

61
#44 - TimMcGuire / @mcguire

08/16/2022 at 08:08PM

61
#45 - leo / @leo848b

09/14/2022 at 05:11PM

61
#46 - Andrew Liu / @AndrewL45936893

09/19/2022 at 07:11PM

63
#47 - George Granberry / @JudgeJerj

07/31/2022 at 10:11PM

63
#48 - Kiran Rajpurohit / @KiranClose

08/05/2022 at 01:35PM

63
#49 - freebejan / @freebejan

08/09/2022 at 09:40PM

63
#50 - toddagibson / @toddagibson

08/24/2022 at 03:49AM

64
#51 - Guilherme Lima / @guilima10

08/09/2022 at 05:51PM

64
#52 - Abdelrahman Madkour / @A3Madkour

08/11/2022 at 03:24PM

64
#53 - Funky McBeef / @FunkyMcBeef

09/12/2022 at 01:25PM

66
#54 - linestopaper / @linestopaper

09/14/2022 at 05:12AM

66
#55 - vimgolfer / @vimgolf321

09/20/2022 at 08:58AM

66
#56 - Nikolaj Sidorenco / @nikolajdws

09/28/2022 at 06:24PM

68
#57 - Fergus Longley / @FergusLongley

09/06/2022 at 07:42PM

68
#58 - Guillaume Seren / @guillaumeseren

09/17/2022 at 05:39PM

68
#59 - vimgolfaccfekxh / @vimgolfaccfekxh

09/28/2022 at 07:27PM

69
#60 - Blake Tereau / @BlakeTereau

08/15/2022 at 05:02PM