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 5f8fd2f33dc797000ce6d784

Easy modification of ssh config

Just add another alias to each worker

Start file
host master
  hostname 10.0.10.8

host 65
  hostname 10.0.10.17

host ef
  hostname 10.0.10.10

host gp
  hostname 10.0.10.27

host h5
  hostname 10.0.10.13

host sa
  hostname 10.0.10.25

host sv
  hostname 10.0.10.12
End file
host master
  hostname 10.0.10.8

host 65 worker1
  hostname 10.0.10.17

host ef worker2
  hostname 10.0.10.10

host gp worker3
  hostname 10.0.10.27

host h5 worker4
  hostname 10.0.10.13

host sa worker5
  hostname 10.0.10.25

host sv worker6
  hostname 10.0.10.12

View Diff

4c4
< host 65
---
> host 65 worker1
7c7
< host ef
---
> host ef worker2
10c10
< host gp
---
> host gp worker3
13c13
< host h5
---
> host h5 worker4
16c16
< host sa
---
> host sa worker5
19c19
< host sv
---
> host sv worker6

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 25 remaining solutions by signing in and submitting your own entry
#26 tyuktu / @tyuk_tu - Score: 69 - 11/20/20 @ 02:49
:%s/host .*[^\n]/\0 worker0/g<CR>gg<kEnd>caw<Esc><Down><Down><Down><C-A><Down><Down><Down>r23<Down>r4r33<Down>r43<Down>r53<Down>r6<Esc>:wq<CR>

0 comments


Created by: @rax0m

26 active golfers, 66 entries

Leaderboard (lowest score wins):
24
#1 - Jon Krause / @jkrause314

10/21/2020 at 03:42PM

24
#2 - Jan Liu / @Jagsomarjan

10/21/2020 at 04:45PM

24
#3 - Smylers / @Smylers2

10/21/2020 at 08:09PM

24
#4 - Oskar Fridell / @rax0m

10/22/2020 at 06:59AM

24
#5 - John Braxler / @braxler

10/22/2020 at 01:29PM

24
#6 - wilsonept / @wilsonept1

10/25/2020 at 12:02AM

24
#7 - Miłosz Łakomy / @foobar01123

10/26/2020 at 09:22AM

24
#8 - MathijsHoogland / @MathijsHoogland

11/09/2020 at 10:39AM

24
#9 - quemeraisc / @quemeraisc

11/24/2020 at 05:28PM

26
#10 - Leland Paul Kusmer / @lelandpaul

10/21/2020 at 01:52PM

26
#11 - Aleks Kissinger / @AleksKissinger

10/21/2020 at 08:29PM

26
#12 - Roger Stoltz / @rogsto1

11/04/2020 at 09:26PM

26
#13 - Serhiy Prikhodko / @mastersnetru

11/21/2020 at 09:07PM

26
#14 - chocolate / @chocola81394123

11/24/2020 at 07:10AM

27
#15 - Saki Gw / @Sakigw

10/21/2020 at 07:17AM

27
#16 - Jakub Wagner / @Jakub1019

10/22/2020 at 09:25AM

28
#17 - mevmev / @mevmev8

10/21/2020 at 09:18PM

28
#18 - AAbraxas / @AAbraxas1

10/24/2020 at 11:41AM

29
#19 - Izmoqwy / @Izmoqwy

10/21/2020 at 12:54PM

30
#20 - moh ayaya / @AyayaMoh

11/04/2020 at 06:14PM

30
#21 - __VimGolfer__ / @VimGolfer19

11/27/2020 at 05:21PM

34
#22 - Armel Chausse / @ArmelChausse

10/23/2020 at 10:14PM

48
#23 - Matt Milliron / @valueiron

11/28/2020 at 05:55AM

54
#24 - Filipe Barroso 💙 / @ABarroso

10/21/2020 at 07:22PM

56
#25 - Siegfried Gessulat / @sgessulat

10/31/2020 at 12:33PM

69
#26 - tyuktu / @tyuk_tu

11/20/2020 at 02:49AM