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
#3481 - Pablo Fonseca / @pablobfonseca

12/15/2016 at 08:43PM

9
#3482 - Pretty big deal / @calvinhp

01/04/2017 at 01:37PM

9
#3483 - Nico Jansen / @nicojansen1804

01/04/2017 at 07:20PM

9
#3484 - Tith Chantara / @TithChantara

01/12/2017 at 11:32PM

9
#3485 - Chris Hughes / @ChristofHughes

01/15/2017 at 08:33PM

9
#3486 - Michael Topal / @h4ckt1c

01/27/2017 at 07:49AM

9
#3487 - Александр Афонин / @Tuch3k

01/27/2017 at 11:08PM

9
#3488 - Patrik Pihlström / @metacognizance

02/03/2017 at 02:14PM

9
#3489 - ben eisner / @b_eisner

02/09/2017 at 08:07AM

9
#3490 - 'Yuno / @iweron

02/12/2017 at 02:44PM

9
#3491 - Nate Casale / @Castallion

02/22/2017 at 05:45PM

9
#3492 - jack / @jack28887741

02/23/2017 at 11:11AM

9
#3493 - 박명호 / @cruck103

02/24/2017 at 12:11PM

9
#3494 - camden bickel / @camdenbickel

02/24/2017 at 09:09PM

9
#3495 - Sven Langer / @sven_langer

02/26/2017 at 11:42AM

9
#3496 - YuKai Lin / @YuKai_Lin5566

03/08/2017 at 05:50AM

9
#3497 - Matthieu Honel / @ocus

03/10/2017 at 04:11PM

9
#3498 - Eric Coleman / @EpicColeman

03/16/2017 at 07:34PM

9
#3499 - Dhruva Sagar / @dhruvasagar

04/03/2017 at 06:17AM

9
#3500 - Henns Woerst / @HennsW

04/13/2017 at 05:34PM

9
#3501 - Aurélien Hervé / @aurel_herve

04/19/2017 at 03:33PM

9
#3502 - raffitz / @raffitz

04/19/2017 at 05:32PM

9
#3503 - Bruce Horner / @HerbConjurer

04/20/2017 at 01:03AM

9
#3504 - Elliot Brock / @mr_minmax

04/24/2017 at 03:36PM

9
#3505 - brucesnyder / @brucesnyder

05/03/2017 at 08:53PM

9
#3506 - Way Yan / @WayYan35002527

05/07/2017 at 02:35AM

9
#3507 - Brad Brown / @zoocat

05/07/2017 at 03:50AM

9
#3508 - Grégoire Willmann / @GWllmnn

05/09/2017 at 12:14PM

9
#3509 - IgnatiusMcGowan / @IgnatiusMcGowan

05/23/2017 at 10:12PM

9
#3510 - Nathan Slaughter / @NjSlaughter

05/23/2017 at 11:58PM