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):
15
#1 - Urtica dioica / @udioica

08/08/2016 at 04:57PM

15
#2 - "Smylers" / @Smylers2

08/08/2016 at 07:34PM

15
#3 - John Braxler / @braxler

08/08/2016 at 07:36PM

15
#4 - jaresty / @jaresty

08/09/2016 at 12:53AM

15
#5 - Eddie Elizondo / @eddie_elizondo

08/09/2016 at 06:33AM

15
#6 - Daniel and Valerie / @daniel_and_val

08/09/2016 at 08:12AM

15
#7 - Josh Samuelson / @JoshSamuelson

08/09/2016 at 11:36PM

15
#8 - Pedro Santos / @pedrosans

08/12/2016 at 04:49AM

15
#9 - Miłosz Łakomy / @foobar01123

08/16/2016 at 09:13AM

15
#10 - Atrament / @Atrament

08/20/2016 at 03:45PM

15
#11 - Stanislav / @prstad

08/22/2016 at 03:37PM

15
#12 - Ivan De Dios / @IvantheDugtrio

08/22/2016 at 08:01PM

15
#13 - citaret / @citaret

08/24/2016 at 08:00AM

15
#14 - Will / @obiwan__k3n00bi

08/31/2016 at 06:20AM

15
#15 - Stephen Aument / @saument

09/01/2016 at 09:53PM

15
#16 - jdupont655 / @jdupont655

09/02/2016 at 12:34AM

15
#17 - loki2441 / @loki2441

09/05/2016 at 08:34PM

15
#18 - hor1ace / @hor3ace

09/07/2016 at 11:30PM

15
#19 - Nico / @_Nico_Caro

09/27/2016 at 04:23AM

15
#20 - trx / @trxdbg

10/12/2016 at 06:03AM

15
#21 - Davis Fields / @i301585

11/05/2016 at 05:59AM

15
#22 - Saki Gw / @Sakigw

01/20/2017 at 08:30PM

15
#23 - sijinyuan / @sijinyuan

02/27/2017 at 02:20AM

15
#24 - Daniel / @Daniel00288663

03/30/2017 at 01:20PM

15
#25 - James Houghton / @jamesthoughton

05/20/2017 at 12:19AM

15
#26 - Turkey Man / @lvturkeyman

11/23/2017 at 05:16PM

15
#27 - azzal07 / @azzal07

03/08/2018 at 06:51PM

15
#28 - Janzen / @__Coos

10/02/2022 at 09:01AM

15
#29 - Peppa Pig / @PeppaPigSg

05/28/2024 at 09:08AM

15
#30 - nickGPT / @nickandbro

08/28/2024 at 03:08AM