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

4216 active golfers, 11500 entries

Leaderboard (lowest score wins):
10
#3751 - かりうむ / @ka1l

12/03/2015 at 02:25AM

10
#3752 - manfred knapp / @fred_pooshka

12/06/2015 at 11:17PM

10
#3753 - twenty2twoss / @twenty2twoss

12/29/2015 at 05:59PM

10
#3754 - kekke / @kekke859

01/15/2016 at 03:35AM

10
#3755 - Joel Stanner / @JoelStanner

01/29/2016 at 11:57AM

10
#3756 - Etienne Tremel / @etiennetremel

02/06/2016 at 01:27PM

10
#3757 - K Aravind Kumar / @ezbi_124

02/06/2016 at 06:10PM

10
#3758 - Kevin Burns / @kburnsinfo

02/12/2016 at 01:27AM

10
#3759 - eL Gee / @LauranceEl

03/11/2016 at 05:11AM

10
#3760 - Clémence / @Clemence_Neoxia

03/29/2016 at 08:06AM

10
#3761 - Super Cheezy Guy / @_SuperCheezyGuy

04/10/2016 at 02:35AM

10
#3762 - Andy / @mayuyu48a

04/20/2016 at 04:21AM

10
#3763 - Christopher Wells / @ExcaliburZero_Z

05/07/2016 at 07:59PM

10
#3764 - Nigel Rahkola / @NinjaRahkola

05/07/2016 at 10:30PM

10
#3765 - drumstix576 / @drumstix576

05/11/2016 at 03:10AM

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

05/28/2016 at 05:30PM

10
#3767 - Nicola Coretti / @NiCoRetti

05/31/2016 at 06:16AM

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

06/04/2016 at 12:24AM

10
#3769 - blah blah / @ds_blah

06/05/2016 at 03:13PM

10
#3770 - Laurion Burchall / @laurionb

06/28/2016 at 11:26PM

10
#3771 - Alex Wang / @a1exwang

07/15/2016 at 06:44AM

10
#3772 - Pavel / @Bazlai

08/04/2016 at 07:47AM

10
#3773 - kodemaan / @kodemaan

08/12/2016 at 07:19PM

10
#3774 - Thomas Versteeg / @versteeg_t

08/19/2016 at 07:28AM

10
#3775 - Christian Guenter / @chris_guenter

08/27/2016 at 07:07PM

10
#3776 - Stephen ☔ Alexander / @sjalexander

09/22/2016 at 11:39PM

10
#3777 - Oliver Christensen / @OliverEHC

09/27/2016 at 08:48PM

10
#3778 - Cameron Dershem / @jerknextdoor

10/04/2016 at 11:47PM

10
#3779 - Joe Heth / @jheth

10/04/2016 at 11:55PM

10
#3780 - TweetDreams / @TweetMusicians

10/08/2016 at 07:59AM