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 58409414770f4b474601384c

Sort files from hosts

Resume files by host. I hope you enjoy with this challenge

Start file
dartacan: /etc/hosts
dartacan
: /etc/httpd/conf/httpd.conf
dartacan
: /opt/scripts/list_vhosts
mozart
: /etc/resolv.conf
mozart
: /usr/bin/vim
mozart
: /usr/bin/awesome
mozart
: ~/.gem/ruby/2.1.0/bin/vimgolf
gullit
: /bin/bash
gullit
: /etc/hosts
gullit
: /usr/bin/xorg
gullit
: /usr/bin/xeyes
gullit
: /usr/bin/X
gullit
: /
End file
dartacan: /etc/hosts /etc/httpd/conf/httpd.conf /opt/scripts/list_vhosts
mozart
: /etc/resolv.conf /usr/bin/vim /usr/bin/awesome ~/.gem/ruby/2.1.0/bin/vimgolf
gullit
: /bin/bash /etc/hosts /usr/bin/xorg /usr/bin/xeyes /usr/bin/X /

View Diff

1,13c1,3
< dartacan: /etc/hosts
< dartacan: /etc/httpd/conf/httpd.conf
< dartacan: /opt/scripts/list_vhosts
< mozart: /etc/resolv.conf
< mozart: /usr/bin/vim
< mozart: /usr/bin/awesome
< mozart: ~/.gem/ruby/2.1.0/bin/vimgolf
< gullit: /bin/bash
< gullit: /etc/hosts
< gullit: /usr/bin/xorg
< gullit: /usr/bin/xeyes
< gullit: /usr/bin/X
< gullit: /
---
> dartacan: /
etc/hosts /etc/httpd/conf/httpd.conf /opt/scripts/list_vhosts
> mozart: /etc/resolv.conf /usr/bin/vim /usr/bin/awesome ~/.gem/ruby/2.1.0/bin/vimgolf
> gullit: /bin/bash /etc/hosts /usr/bin/xorg /usr/bin/xeyes /usr/bin/X /

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 75 remaining solutions by signing in and submitting your own entry
#76 Jurica / @Jurica34581259 - Score: 50 - 12/13/18 @ 17:06
jdwxjdwxkkJJ2j0dwxjdwxjdwx3kJJJ4Gqadwxjq4@a3G5JJZZ

0 comments


Created by: @i5513

76 active golfers, 188 entries

Leaderboard (lowest score wins):
16
#31 - Michel Viktor / @tomkpz

03/12/2022 at 03:42AM

16
#32 - Jean George / @JeanGeo20504212

05/11/2022 at 10:16PM

16
#33 - z00master / @z00master

08/19/2022 at 06:12AM

16
#34 - ._. / @Katharsic

11/21/2022 at 02:50PM

16
#35 - Luoyb / @Luoyb

11/17/2023 at 07:47AM

18
#36 - Vaughn Cato / @vaughncato

12/01/2016 at 09:34PM

18
#37 - i5513 / @i5513

12/01/2016 at 11:15PM

18
#38 - alkozu / @alkozu

12/02/2016 at 08:05AM

18
#39 - Jan Bundesmann / @janbundesmann

12/02/2016 at 08:21AM

18
#40 - Sergio / @voyeg3r

12/02/2016 at 11:54AM

18
#41 - Cristian Lupașcu / @clupasq

12/02/2016 at 04:39PM

18
#42 - Никита Канунников / @NIikitaK

12/04/2016 at 11:03AM

18
#43 - Liam S Ismail / @AC01Y

12/06/2016 at 11:30PM

18
#44 - さよきみ / @MrIn1121

12/08/2016 at 05:47PM

18
#45 - holy_sin / @0zero0

12/09/2016 at 07:34AM

18
#46 - herbage / @herbage2

12/11/2016 at 02:02PM

18
#47 - Michał Dytko / @DytkoM

12/19/2016 at 08:30AM

18
#48 - retro / @tryphopp

12/20/2016 at 12:02AM

18
#49 - Mattias GABRIEL / @matou008

12/20/2016 at 09:47PM

18
#50 - Marcel Akkerman / @MarcelAkkerman

12/21/2016 at 03:16PM

18
#51 - we’re going to need a bigger bot / @assaflavie

01/01/2017 at 08:02PM

18
#52 - Patrick Sanan / @patricksanan

01/09/2017 at 01:20PM

18
#53 - Hans Yelek / @hans_yelek

01/09/2017 at 11:05PM

18
#54 - Matt Rasmus / @_mattrasmus

01/13/2017 at 06:19PM

18
#55 - Social Botolinum / @SocialBot4

01/25/2017 at 12:19PM

18
#56 - Yann / @yannstad

02/22/2017 at 06:47AM

18
#57 - Mark Brody / @_markbrody

03/23/2017 at 05:51AM

18
#58 - Daniel / @Daniel00288663

03/29/2017 at 07:59AM

18
#59 - 20speedvegan / @ashkevinm

04/14/2017 at 04:24PM

18
#60 - Tommaso Leonardi / @tom_leon

05/11/2017 at 02:53PM