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

49 active golfers, 165 entries

Leaderboard (lowest score wins):
27
#31 - Russell Helmstedter / @RHelmstedter

07/28/2021 at 05:13PM

28
#32 - mevmev / @mevmev8

10/21/2020 at 09:18PM

28
#33 - AAbraxas / @AAbraxas1

10/24/2020 at 11:41AM

29
#34 - Izmoqwy / @Izmoqwy

10/21/2020 at 12:54PM

30
#35 - moh ayaya / @AyayaMoh

11/04/2020 at 06:14PM

30
#36 - __VimGolfer__ / @VimGolfer19

11/27/2020 at 05:21PM

30
#37 - Jens Junker Pedersen / @junker_jens

05/12/2021 at 03:32PM

31
#38 - :wq / @write_quit_22

05/19/2021 at 06:44AM

34
#39 - Armel Chausse / @ArmelChausse

10/23/2020 at 10:14PM

39
#40 - vimgolfer8787 / @vimgolfer8787

01/30/2021 at 09:25PM

39
#41 - Martin LOUAZEL / @Zbrahark

02/19/2021 at 12:46PM

40
#42 - fff / @fff51460170

02/21/2021 at 05:46AM

43
#43 - κΉ€λ²”μ€€ / @kmbmjn

02/17/2021 at 02:21AM

46
#44 - Rory Smith / @alan0buchanan

09/15/2021 at 10:41PM

48
#45 - Matt Milliron / @valueiron

11/28/2020 at 05:55AM

54
#46 - Filipe Barroso πŸ’™ / @ABarroso

10/21/2020 at 07:22PM

54
#47 - Scott Atkins / @scottrick49

06/09/2021 at 08:04PM

56
#48 - Siegfried Gessulat / @sgessulat

10/31/2020 at 12:33PM

69
#49 - tyuktu / @tyuk_tu

11/20/2020 at 02:49AM