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 35 remaining solutions by signing in and submitting your own entry
#36 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

36 active golfers, 178 entries

Leaderboard (lowest score wins):
190
#31 - Seungho Lee / @llistnr

05/23/2024 at 04:02AM

190
#32 - Janusz Spatz / @janusz-anue

09/18/2024 at 09:03PM

190
#33 - ProGamerYeet / @ProGamerYeet

04/25/2025 at 08:05PM

196
#34 - Kristofers Solo / @kristoferssolo

07/12/2024 at 05:31PM

197
#35 - Ivan De Dios / @IvantheDugtrio

05/10/2024 at 10:41PM

394
#36 - Pankaj Pansari / @pankajpansari

05/14/2024 at 06:24PM