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 54862fbb3f90ac0002904cf5

Just the middle

Delete the instructions at the top and bottom.

Start file
Leave only the
numbered lines.
LINE 1
LINE 2
LINE 3
That's all.
Thank you
very much.
End file
LINE 1
LINE 2
LINE 3

View Diff

1,2d0
< Leave only the
< numbered lines.
6,8d3
< That's all.
< Thank you
< very much.

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 3422 remaining solutions by signing in and submitting your own entry
#3423 휘람 / @Brandhwi_0129 - Score: 120 - 06/29/18 @ 08:34
sdj<Down><Right><Left><Down><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>ZZ<BS><BS><Esc>ZZ

@saurabh908583: sdj -- dj make sense it deletes the top 2 lines for me but if I s press sdj it does 'Leave only the' >>>> 'djave only the' ... how did you do it? do you have key map

1 comment


Created by: @udioica

3423 active golfers, 9164 entries

Leaderboard (lowest score wins):
10
#3181 - JonasS / @jonas42s

05/29/2019 at 09:59AM

10
#3182 - albalitz / @_albalitz

06/04/2019 at 03:53PM

10
#3183 - ほた / @hota1024

06/11/2019 at 09:43AM

10
#3184 - ゆうこ / @any23710

06/13/2019 at 10:46AM

10
#3185 - Erik Larsson / @Ermigh

06/18/2019 at 10:16PM

10
#3186 - Zachary Cetinic / @Swervenstuff

06/19/2019 at 06:55PM

11
#3187 - Julien Sabotage / @anerdwithaknife

12/19/2014 at 09:54PM

11
#3188 - Eric Biven / @EricBiven

12/31/2014 at 08:03PM

11
#3189 - manish mishra / @manishrdmishra

01/12/2015 at 11:33PM

11
#3190 - Giorgio / @Gpx

01/19/2015 at 06:38PM

11
#3191 - gnobbles / @gnobbles

01/22/2015 at 02:41AM

11
#3192 - Tomi Savolainen / @tomi_savolainen

01/23/2015 at 02:32PM

11
#3193 - 沸腾钢 / @tobecloud

02/08/2015 at 10:02AM

11
#3194 - Camilla / @MsFaceless

02/11/2015 at 05:58AM

11
#3195 - wilddog64 / @chengkai318

02/11/2015 at 11:00PM

11
#3196 - OlivierLi / @LiZhongSin

02/16/2015 at 08:30PM

11
#3197 - Dmitry Zudochkin / @zudochkin

02/17/2015 at 07:37PM

11
#3198 - Pierre / @_coaxial

02/23/2015 at 07:16PM

11
#3199 - Max Rahm / @ac90b671

03/12/2015 at 10:07PM

11
#3200 - Aria / @AriaMoKr

03/12/2015 at 10:51PM

11
#3201 - luiz agostinho / @variom_br

03/16/2015 at 01:24PM

11
#3202 - Khalid Harun / @KhalidHarun

03/19/2015 at 05:25AM

11
#3203 - ಸುಬ್ರಹ್ಮಣ್ಯ ಜೋಶಿ / @subbucoding

03/23/2015 at 12:08PM

11
#3204 - boxcar willy / @goodbobhunting

03/25/2015 at 02:48AM

11
#3205 - Andrew Larson / @applarson

04/15/2015 at 12:25AM

11
#3206 - Ken Powers / @knpwrs

05/19/2015 at 03:00AM

11
#3207 - コダマ / @pyorotan

05/24/2015 at 12:21AM

11
#3208 - Suraj Thakkar / @surajjthakkar

05/26/2015 at 07:45PM

11
#3209 - Emmanuel Caillé / @e_caille

06/05/2015 at 07:45PM

11
#3210 - meme master / @meemlover420

07/07/2015 at 07:32AM