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 4214 remaining solutions by signing in and submitting your own entry
#4215 휘람 / @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

4215 active golfers, 11497 entries

Leaderboard (lowest score wins):
9
#3421 - Justin Thomas / @base698

01/28/2016 at 07:58PM

9
#3422 - warren crowell / @warrenmcrowell

01/30/2016 at 01:32AM

9
#3423 - noname / @banxjal2

02/05/2016 at 04:32PM

9
#3424 - dattaz / @dat_taz

02/07/2016 at 06:22PM

9
#3425 - Cristian Lupașcu / @clupasq

02/08/2016 at 02:58PM

9
#3426 - Sai Man Wong / @saimanwong

02/08/2016 at 07:34PM

9
#3427 - Andre Danielsson / @DanielssonAndre

02/08/2016 at 07:34PM

9
#3428 - Marco Tanner / @tannerli

02/18/2016 at 02:59PM

9
#3429 - Aviv Cukierman / @AvivCukierman

02/26/2016 at 10:16PM

9
#3430 - Julian / @JulianGindi

02/27/2016 at 08:11PM

9
#3431 - Tran Duc Thang / @thangtd90

03/06/2016 at 08:40AM

9
#3432 - Gregory Allan / @grobot

03/09/2016 at 11:12PM

9
#3433 - KyoheiMasuda / @_maskyo

03/25/2016 at 06:48AM

9
#3434 - Lauren Scott / @devdame

03/28/2016 at 07:31PM

9
#3435 - Tom Coakes / @thekrunch

04/19/2016 at 01:06PM

9
#3436 - jb M / @Jiboo_hey

04/20/2016 at 02:03PM

9
#3437 - Kevin R / @TheKevinthDay

04/26/2016 at 10:12PM

9
#3438 - Aldo Vega / @vc_aldo

04/27/2016 at 07:50PM

9
#3439 - chrissou / @chradr

05/02/2016 at 02:08PM

9
#3440 - Nakvasiuk Vasyl / @vaxXxa

05/02/2016 at 03:54PM

9
#3441 - Zeca / @zeca_foz

05/03/2016 at 10:44AM

9
#3442 - Elliott Mantock / @elGatoMantocko

05/03/2016 at 09:02PM

9
#3443 - Max / @_mluzuriaga

05/10/2016 at 03:16AM

9
#3444 - Jon E. Eguiluz 🏳️‍🌈 / @viroide

05/29/2016 at 12:53PM

9
#3445 - talineo / @talineo_

06/02/2016 at 03:38PM

9
#3446 - Alexandre Lion / @lnalx

06/04/2016 at 01:55PM

9
#3447 - king sized toilet / @ohwowcrazy

06/07/2016 at 03:16PM

9
#3448 - Zhao Bin / @ZhaoBin2

06/07/2016 at 03:56PM

9
#3449 - Denys Zadorozhnyi / @greenden

06/12/2016 at 04:32PM

9
#3450 - Kento Kaneko / @kentokaneko

06/15/2016 at 04:42AM