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):
19
#31 - Jon Krause / @jkrause314

08/08/2016 at 04:37PM

19
#32 - Matt / @mcr05

08/14/2016 at 11:52AM

19
#33 - Mihai / @mihaicristiant

02/01/2019 at 05:51PM

19
#34 - Lory / @Lory46845742

12/12/2019 at 03:12PM

19
#35 - pikjes / @pikjes2

07/16/2021 at 11:43AM

19
#36 - Jean George / @JeanGeo20504212

03/25/2022 at 12:56PM

21
#37 - tPenguinLTG / @tpenguinltg

08/11/2016 at 07:41AM

21
#38 - Maxime Reis / @MaximeReis

08/11/2016 at 04:06PM

21
#39 - Lifepillar / @lifepillar

08/15/2016 at 05:11AM

21
#40 - Stoyko Stanchev / @stoykostanchev

09/27/2016 at 12:09AM

21
#41 - Netrisk Cool / @C00lt0

10/01/2016 at 09:41AM

21
#42 - i1464083 / @i1464083

11/18/2016 at 01:43PM

21
#43 - Etienne Florent / @EtienneFlorent

11/25/2016 at 01:31PM

21
#44 - Ben Hill / @KaizenSoze70

07/01/2017 at 12:56AM

21
#45 - 杨洋 / @176795444

07/16/2017 at 09:11AM

21
#46 - DHM / @DHM29978992

04/30/2018 at 03:47AM

22
#47 - Michael Brailsford / @brailsmt

08/12/2016 at 02:57PM

22
#48 - Yu-Lun Tseng / @YuLunTseng

08/14/2016 at 01:50PM

22
#49 - Gurukandhamoorthi / @Gurukandhamoor1

07/13/2017 at 10:34AM

23
#50 - TweetDreams / @TweetMusicians

10/09/2016 at 12:38AM

23
#51 - James / @Dronak

08/28/2017 at 02:20AM

24
#52 - qed / @qed13308565

07/26/2018 at 12:21AM

25
#53 - イーサン / @metakirby5

09/08/2016 at 01:47AM

27
#54 - И К / @igorjan94

09/14/2016 at 12:56PM

27
#55 - mindgitrwx / @mindgitrwx

09/20/2020 at 10:09AM

27
#56 - Alex / @AlexanderHeatl2

05/21/2022 at 09:34PM

28
#57 - George Angelopoulos / @g_usermod

08/09/2016 at 09:00AM

28
#58 - Mark Brody / @_markbrody

03/23/2017 at 06:46AM

29
#59 - Ernesto Nakamura / @ernestonakamura

08/09/2016 at 12:25AM

30
#60 - ♜ Pepe Doval / @pepellou

08/08/2016 at 04:46PM