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 57a87f444f1a8e3c4000ff8c

Pretty multi-line bash

Bash line continuations are much prettier when they're column aligned.

Start file
RUN wget https://openresty.org/download/openresty-1.9.7.5.tar.gz && \
    tar xzf openresty
-1.9.7.5.tar.gz && \
    cd openresty
-1.9.7.5 && \
   
./configure && \
    make
&& \
    make install
&& \
    rm
-rf /openresty*
End file
RUN wget https://openresty.org/download/openresty-1.9.7.5.tar.gz && \
    tar xzf openresty
-1.9.7.5.tar.gz                             && \
    cd openresty
-1.9.7.5                                         && \
   
./configure                                                  && \
    make                                                        
&& \
    make install                                                
&& \
    rm
-rf /openresty*

View Diff

2,6c2,6
<     tar xzf openresty-1.9.7.5.tar.gz && \
<     cd openresty-1.9.7.5 && \
<     ./configure && \
<     make && \
<     make install && \
---
>     tar xzf openresty-1.9.7.5.tar.gz                             && \
>     cd openresty-1.9.7.5                                         && \
>     ./configure                                                  && \
>     make                                                         && \
>     make install                                                 && \

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 76 remaining solutions by signing in and submitting your own entry
#77 kodemaan / @kodemaan - Score: 130 - 08/10/16 @ 13:22
/&&<CR>ni<Esc>l20i <Esc>i        <Esc>nni50<BS><BS><Esc>l50i <Esc>hlvhhhhhhhhhxjhhhi <Esc>li<Esc>30i <Esc>.hhhhhhhhhhlxxxxxxxxxxxxjhhhi<Esc>50i <Esc>i      <Esc>jhhh40i <Esc>i        <Esc>:x<CR>

0 comments


Created by: @assaflavie

77 active golfers, 235 entries

Leaderboard (lowest score wins):
30
#61 - 7r6a2l / @7r6a2l

08/10/2016 at 01:06AM

30
#62 - Christian Rondeau / @c_rondeau

10/16/2016 at 06:57PM

31
#63 - Walker Boh / @walker_boh

08/08/2016 at 01:29PM

31
#64 - Cristian Lupașcu / @clupasq

08/08/2016 at 05:34PM

31
#65 - Guillaume Seren / @guillaumeseren

08/08/2016 at 06:09PM

31
#66 - Louis Caruana / @louiecaruana

08/09/2016 at 03:03AM

31
#67 - Jeremiah Goyette / @JeremiahGoyette

08/20/2016 at 05:21AM

31
#68 - Constantine / @ConstantineHatz

09/16/2016 at 10:22PM

31
#69 - 張育瑄 / @harry830622

11/10/2016 at 09:30AM

31
#70 - Yann / @yannstad

02/26/2017 at 07:10PM

31
#71 - RockerZZY / @rocker_zzy

06/07/2020 at 01:49PM

33
#72 - d1uckym d1uckym / @d1uckym

08/14/2016 at 03:41AM

33
#73 - Antoni Villalonga / @friki

08/15/2016 at 10:33AM

49
#74 - Frank Berthold / @fkberthold

08/12/2016 at 07:53PM

54
#75 - Marc / @Fusselgesicht

08/12/2016 at 04:40PM

54
#76 - Jurica / @Jurica34581259

12/06/2018 at 03:45AM

130
#77 - kodemaan / @kodemaan

08/10/2016 at 01:22PM