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

4114 active golfers, 11141 entries

Leaderboard (lowest score wins):
10
#3661 - lonerr / @LonerrOleg

11/22/2015 at 12:19AM

10
#3662 - Zack Bleach / @zackbleach

11/29/2015 at 04:34AM

10
#3663 - Wilmer Bandres / @WilmerBandres

11/29/2015 at 11:48PM

10
#3664 - Benjamin Rausch / @DubbsSmacker44

12/02/2015 at 08:13PM

10
#3665 - かりうむ / @ka1l

12/03/2015 at 02:25AM

10
#3666 - manfred knapp / @fred_pooshka

12/06/2015 at 11:17PM

10
#3667 - twenty2twoss / @twenty2twoss

12/29/2015 at 05:59PM

10
#3668 - kekke / @kekke859

01/15/2016 at 03:35AM

10
#3669 - Joel Stanner / @JoelStanner

01/29/2016 at 11:57AM

10
#3670 - Etienne Tremel / @etiennetremel

02/06/2016 at 01:27PM

10
#3671 - K Aravind Kumar / @ezbi_124

02/06/2016 at 06:10PM

10
#3672 - Kevin Burns / @kburnsinfo

02/12/2016 at 01:27AM

10
#3673 - eL Gee / @LauranceEl

03/11/2016 at 05:11AM

10
#3674 - Clémence / @Clemence_Neoxia

03/29/2016 at 08:06AM

10
#3675 - Super Cheezy Guy / @_SuperCheezyGuy

04/10/2016 at 02:35AM

10
#3676 - Andy / @mayuyu48a

04/20/2016 at 04:21AM

10
#3677 - Christopher Wells / @ExcaliburZero_Z

05/07/2016 at 07:59PM

10
#3678 - Nigel Rahkola / @NinjaRahkola

05/07/2016 at 10:30PM

10
#3679 - drumstix576 / @drumstix576

05/11/2016 at 03:10AM

10
#3680 - Eric エリック / @ericgroom

05/28/2016 at 05:30PM

10
#3681 - Nicola Coretti / @NiCoRetti

05/31/2016 at 06:16AM

10
#3682 - J.C. Morrow / @fueledbyclif

06/04/2016 at 12:24AM

10
#3683 - blah blah / @ds_blah

06/05/2016 at 03:13PM

10
#3684 - Laurion Burchall / @laurionb

06/28/2016 at 11:26PM

10
#3685 - Alex Wang / @a1exwang

07/15/2016 at 06:44AM

10
#3686 - Pavel / @Bazlai

08/04/2016 at 07:47AM

10
#3687 - kodemaan / @kodemaan

08/12/2016 at 07:19PM

10
#3688 - Thomas Versteeg / @versteeg_t

08/19/2016 at 07:28AM

10
#3689 - Christian Guenter / @chris_guenter

08/27/2016 at 07:07PM

10
#3690 - Stephen ☔ Alexander / @sjalexander

09/22/2016 at 11:39PM