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

Morse

Translate Morse code to Text

Start file
.. / - .-. ..- ... - / -.-- --- ..- / .... .- ...- . -. - / - .-. .- -. ... .-.. .- - . -.. / .. - / -- .- -. ..- .- .-.. .-.. -.-- .-.-.- / - .... .- - ... / .--. .-. . -.-. .. ... . .-.. -.-- / .-- .... .- - / -.-. --- -- .--. ..- - . .-. ... / .- .-. . / ..-. --- .-. .-.-.- / -- .- -. ..- .- .-.. / - .-. .- -. ... .-.. .- - .. --- -. / .. ... / -.. .-. . .- -.. ..-. ..- .-.. .-.. -.-- / .. -. . ..-. ..-. .. -.-. .. . -. - / .- -. -.. / - .... .- - ... / .--. .-. . -.-. .. ... . .-.. -.-- / .-- .... -.-- / - .... .. ... / .--. .- ... ... .- --. . / .... .- ... / ... - .-. . - -.-. .... . -.. / --- -. / ... --- .-.-.-

morse code charts
:
a
.-
b
-...
c
-.-.
d
-..
e
.
f
..-.
g
--.
h
....
i
..
j
.---
k
-.-
l
.-..
m
--
n
-.
o
---
p
.--.
q
--.-
r
.-.
s
...
t
-
u
..-
v
...-
w
.--
x
-..-
y
-.--
z
--..
. .-.-.-
End file
i trust you havent translated it manually. thats precisely what computers are for. manual translation is dreadfully inefficient and thats precisely why this passage has stretched on so.

View Diff

1,30c1
< .. / - .-. ..- ... - / -.-- --- ..- / .... .- ...- . -. - / - .-. .- -. ... .-.. .- - . -.. / .. - / -- .- -. ..- .- .-.. .-.. -.-- .-.-.- / - .... .- - ... / .--. .-. . -.-. .. ... . .-.. -.-- / .-- .... .- - / -.-. --- -- .--. ..- - . .-. ... / .- .-. . / ..-. --- .-. .-.-.- / -- .- -. ..- .- .-.. / - .-. .- -. ... .-.. .- - .. --- -. / .. ... / -.. .-. . .- -.. ..-. ..- .-.. .-.. -.-- / .. -. . ..-. ..-. .. -.-. .. . -. - / .- -. -.. / - .... .- - ... / .--. .-. . -.-. .. ... . .-.. -.-- / .-- .... -.-- / - .... .. ... / .--. .- ... ... .- --. . / .... .- ... / ... - .-. . - -.-. .... . -.. / --- -. / ... --- .-.-.-
<
< morse code charts:
< a .-
< b -...
< c -.-.
< d -..
< e .
< f ..-.
< g --.
< h ....
< i ..
< j .---
< k -.-
< l .-..
< m --
< n -.
< o ---
< p .--.
< q --.-
< r .-.
< s ...
< t -
< u ..-
< v ...-
< w .--
< x -..-
< y -.--
< z --..
< . .-.-.-
---
> i trust you havent translated it manually. thats precisely what computers are for. manual translation is dreadfully inefficient and thats precisely why this passage has stretched on so.

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 32 remaining solutions by signing in and submitting your own entry
#33 Pankaj Pansari / @pankajpansari - Score: 394 - 05/14/24 @ 18:24
4jk:4,30s/\<BS>\./\\./g<CR>:noh<CR>gg4jk@gqgmci <Esc>vll"ayllA <Esc>02lv$h"by:1s/<C-R>b/<C-R>a/g<CR>`cjq10@gjhh10@g<Esc>jhh10@gj010@gj010@gj010@gjhh@g:<BS>@gh<<@d@gggi <Esc>jjjjjjjjjjj<<@gkkkkkkkkkkkkhhi<Esc>llllhjjjjjjjjjjjjjjjjjjjjjjjjjjkkkkkkjhhh<<A<BS><Esc>kj0@gkkkkkkkk<<A<BS><Esc>0@gkkkkkkk<<A<BS><Esc>0@ggG<Esc><Esc><Esc><Esc>Ghh<<A<BS><BS><BS><Esc>ll0@g0kkkkkkkkk<<A<BS><BS>.<Esc>0@gullllllllllllll0@gkkkkkkkkkkkkkkkkkkkkkhi<Esc>lxxi<Esc>ii<Esc>lx<Esc>f.hiyl<BS><Esc>llwwf.hir<Esc>f.f.ld$jdG<Esc>:1<BS>s/ //g<CR>:s/\// /g<CR>:wq<CR>

0 comments


Created by: @maharba6

33 active golfers, 148 entries

Leaderboard (lowest score wins):
31
#1 - Danilo J. S. Bellini 🥊🇧🇷 / @danilobellini

04/29/2024 at 01:19PM

31
#2 - Peppa Pig / @PeppaPigSg

07/09/2024 at 02:33PM

31
#3 - Berel94 / @Berel94

11/06/2024 at 09:38PM

32
#4 - Lennart / @lennartack

04/28/2024 at 08:33PM

32
#5 - John Braxler / @braxler

04/29/2024 at 01:00PM

32
#6 - Jean George / @JeanGeo20504212

05/03/2024 at 08:10PM

32
#7 - Petro Тrouq / @zulolosi

07/16/2024 at 11:09AM

33
#8 - "Smylers" / @Smylers2

04/26/2024 at 09:07PM

33
#9 - Roger Stoltz / @rogsto1

08/29/2024 at 03:56PM

35
#10 - Aly Thobani / @alythobani

05/22/2024 at 07:51PM

35
#11 - nickGPT / @nickandbro

08/22/2024 at 05:21AM

35
#12 - got_windy / @insomnight

11/22/2024 at 12:05AM

38
#13 - rike09 / @rike09

06/21/2024 at 12:48PM

42
#14 - Charlie-83 / @Charlie-83

04/24/2024 at 08:46PM

44
#15 - James Tan / @jamesbtan

05/06/2024 at 08:35PM

45
#16 - Lily / @totallyuniquelily

04/27/2024 at 01:41PM

46
#17 - guyontristan / @guyontristan

10/20/2024 at 01:52PM

61
#18 - rhasarub / @rhasarub

09/11/2024 at 08:28PM

63
#19 - Jiří Alexandrovič / @Fanteria

06/01/2024 at 09:12AM

69
#20 - maharba6 / @maharba6

07/04/2024 at 10:27AM

71
#21 - constap / @constap

04/30/2024 at 02:58PM

81
#22 - evixenon / @evixenon

07/20/2024 at 09:55PM

90
#23 - Casey O'Donnell / @CaseyOD15519082

05/03/2024 at 08:11PM

90
#24 - Thermospore / @Thermospore

05/20/2024 at 06:20AM

97
#25 - cotarmanach / @cotarmanach

05/26/2024 at 05:54PM

100
#26 - Tatum Roaquin / @tatumroaquin

05/21/2024 at 10:07AM

110
#27 - Jonathan Schaaij / @jonathanschaaij

08/22/2024 at 09:05AM

190
#28 - Brendan Mullins / @jsnanigans

05/13/2024 at 08:50AM

190
#29 - Seungho Lee / @llistnr

05/23/2024 at 04:02AM

190
#30 - Janusz Spatz / @janusz-anue

09/18/2024 at 09:03PM