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

ssh config skills

Parse output from `kuebctl get no -o wide` into an .ssh/config file!

Start file
master-0-pccc-269-4                Ready                      master   5d3h   v1.18.2   10.0.10.10    <none>
worker-pool1-07p524t4-pccc-269-4   Ready                      worker   5d2h   v1.18.2   10.0.10.17    <none>
worker-pool1-2l7ogj75-pccc-269-4   Ready                      worker   5d2h   v1.18.2   10.0.10.18    <none>
worker-pool1-3qrc0j0w-pccc-269-4   Ready                      worker   5d2h   v1.18.2   10.0.10.4     <none>
worker-pool1-4qo9q5zu-pccc-269-4   Ready,SchedulingDisabled   worker   5d2h   v1.18.2   10.0.10.6     <none>
worker-pool1-c624wl6q-pccc-269-4   Ready,SchedulingDisabled   worker   5d2h   v1.18.2   10.0.10.13    <none>
worker-pool1-c8b1h8vv-pccc-269-4   Ready                      worker   5d2h   v1.18.2   10.0.10.36    <none>
worker-pool1-hdas516w-pccc-269-4   Ready                      worker   5d2h   v1.18.2   10.0.10.2     <none>
worker-pool1-i3gil9z5-pccc-269-4   Ready,SchedulingDisabled   worker   5d2h   v1.18.2   10.0.10.22    <none>
worker-pool1-iwnlys88-pccc-269-4   Ready                      worker   5d2h   v1.18.2   10.0.10.12    <none>
worker-pool1-nhw7dtfw-pccc-269-4   Ready,SchedulingDisabled   worker   5d2h   v1.18.2   10.0.10.24    <none>
worker-pool1-s2y990ll-pccc-269-4   Ready,SchedulingDisabled   worker   5d2h   v1.18.2   10.0.10.21    <none>
worker-pool1-skqyxr40-pccc-269-4   Ready,SchedulingDisabled   worker   5d2h   v1.18.2   10.0.10.27    <none>
End file
host master
  hostname 10.0.10.10

host 07
  hostname 10.0.10.17

host 2l
  hostname 10.0.10.18

host 3q
  hostname 10.0.10.4

host 4q
  hostname 10.0.10.6

host c6
  hostname 10.0.10.13

host c8
  hostname 10.0.10.36

host hd
  hostname 10.0.10.2

host i3
  hostname 10.0.10.22

host iw
  hostname 10.0.10.12

host nh
  hostname 10.0.10.24

host s2
  hostname 10.0.10.21

host sk
  hostname 10.0.10.27

View Diff

1,13c1,38
< master-0-pccc-269-4                Ready                      master   5d3h   v1.18.2   10.0.10.10    <none>
< worker-pool1-07p524t4-pccc-269-4   Ready                      worker   5d2h   v1.18.2   10.0.10.17    <none>
< worker-pool1-2l7ogj75-pccc-269-4   Ready                      worker   5d2h   v1.18.2   10.0.10.18    <none>
< worker-pool1-3qrc0j0w-pccc-269-4   Ready                      worker   5d2h   v1.18.2   10.0.10.4     <none>
< worker-pool1-4qo9q5zu-pccc-269-4   Ready,SchedulingDisabled   worker   5d2h   v1.18.2   10.0.10.6     <none>
< worker-pool1-c624wl6q-pccc-269-4   Ready,SchedulingDisabled   worker   5d2h   v1.18.2   10.0.10.13    <none>
< worker-pool1-c8b1h8vv-pccc-269-4   Ready                      worker   5d2h   v1.18.2   10.0.10.36    <none>
< worker-pool1-hdas516w-pccc-269-4   Ready                      worker   5d2h   v1.18.2   10.0.10.2     <none>
< worker-pool1-i3gil9z5-pccc-269-4   Ready,SchedulingDisabled   worker   5d2h   v1.18.2   10.0.10.22    <none>
< worker-pool1-iwnlys88-pccc-269-4   Ready                      worker   5d2h   v1.18.2   10.0.10.12    <none>
< worker-pool1-nhw7dtfw-pccc-269-4   Ready,SchedulingDisabled   worker   5d2h   v1.18.2   10.0.10.24    <none>
< worker-pool1-s2y990ll-pccc-269-4   Ready,SchedulingDisabled   worker   5d2h   v1.18.2   10.0.10.21    <none>
< worker-pool1-skqyxr40-pccc-269-4   Ready,SchedulingDisabled   worker   5d2h   v1.18.2   10.0.10.27    <none>
---
> host master
>   hostname 10.0.10.10
> 
> host 07
>   hostname 10.0.10.17
> 
> host 2l
>   hostname 10.0.10.18
> 
> host 3q
>   hostname 10.0.10.4
> 
> host 4q
>   hostname 10.0.10.6
> 
> host c6
>   hostname 10.0.10.13
> 
> host c8
>   hostname 10.0.10.36
> 
> host hd
>   hostname 10.0.10.2
> 
> host i3
>   hostname 10.0.10.22
> 
> host iw
>   hostname 10.0.10.12
> 
> host nh
>   hostname 10.0.10.24
> 
> host s2
>   hostname 10.0.10.21
> 
> host sk
>   hostname 10.0.10.27

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 22 remaining solutions by signing in and submitting your own entry
#23 just here to scroll. / @idontknow0001 - Score: 311 - 10/03/20 @ 14:27
ctmhost <Esc>f c/10<CR><CR>  hostname <Esc>f d$o<Esc><Down><Left><Left>qac2f-host <Esc>lllc/10<CR><CR>  hostname <Esc>fa f d$o<Esc><Down><Left><Left>q11@a<Esc>uuuuu:help f<CR><Esc>q<Esc><Esc>:q<CR><Down><Up><Up><Up><Up><Right><Down><Left><Down><Down>qac2f-host <Esc>lllc/10<CR><CR>h<BS>  hostname <Esc>f_f d$o<Esc>jhhq11@a<Down><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>11qA<Esc><Esc><Esc>uuuuuqa<Left><Esc>qac2f-<Esc>uu<Left><Down><Up><Right>o<BS><BS><Down>q<BS><Esc>q:help f<CR><Esc>q:q<CR><Esc>:q1<BS>!<CR><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down>:q!<CR>qac2f-host <Esc>lllc/10<CR><CR>  hostname <Esc>f d$o<Esc>jhhq11@#a<Esc><Left>11@addZZ

0 comments


Created by: @rax0m

23 active golfers, 72 entries

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

10/05/2020 at 05:48PM

41
#2 - John Braxler / @braxler

10/05/2020 at 07:47PM

43
#3 - Saki Gw / @Sakigw

10/01/2020 at 06:54AM

43
#4 - Jan Liu / @Jagsomarjan

10/03/2020 at 05:52PM

43
#5 - lamtt77 / @lamtt77

10/08/2020 at 05:56AM

44
#6 - Smylers / @Smylers2

09/29/2020 at 09:02PM

44
#7 - genoskill / @Genoskill

10/04/2020 at 06:22AM

46
#8 - Oskar Fridell / @rax0m

09/29/2020 at 01:50PM

46
#9 - Miko / @_m_ik_o_

10/04/2020 at 01:36PM

55
#10 - Roger Stoltz / @rogsto1

10/18/2020 at 09:27PM

56
#11 - mstronam / @mstronam

10/01/2020 at 08:40AM

57
#12 - Vildu / @Vildu3

09/29/2020 at 10:30PM

59
#13 - Brad Hubbard / @BradHubbard19

10/08/2020 at 08:26AM

62
#14 - Jeff Cui / @jeffacce

10/13/2020 at 12:37PM

63
#15 - Oleg / @colega

09/29/2020 at 07:24PM

74
#16 - Mark Korondi / @kmarc

10/09/2020 at 03:49PM

78
#17 - Yannick / @Yannick88147038

10/10/2020 at 02:23PM

78
#18 - FunkyKoval / @FunkyKoval10

10/12/2020 at 06:12PM

82
#19 - Brendan Schaenzer / @bschaenzer

09/29/2020 at 07:08PM

82
#20 - João Carvalho / @joaoCarvas

09/29/2020 at 09:21PM

89
#21 - Emil Abraham / @emil1414

09/29/2020 at 07:18PM

106
#22 - Chris Conte / @chriscconte

10/05/2020 at 08:31PM

311
#23 - just here to scroll. / @idontknow0001

10/03/2020 at 02:27PM