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

3713 active golfers, 9966 entries

Leaderboard (lowest score wins):
11
#3481 - Patrick J McDonough / @snake_VsCamel

09/05/2016 at 03:47AM

11
#3482 - Batuhan Bayrakçı / @bay_batu

09/16/2016 at 09:50AM

11
#3483 - Allen Gooch / @mojochao

09/18/2016 at 10:18PM

11
#3484 - Faded Song / @fadedsong0

10/06/2016 at 03:51AM

11
#3485 - Daniel Ekelund / @daniel_ekelund

12/08/2016 at 08:16PM

11
#3486 - Alex Moorman / @dabearsxander

01/06/2017 at 03:16AM

11
#3487 - Matt Walsh / @wattmalsh

01/21/2017 at 08:35PM

11
#3488 - Adam Wilbraham / @Wilbatron

04/23/2017 at 08:27PM

11
#3489 - John Doe Jr / @bf4648

06/04/2017 at 05:48AM

11
#3490 - Austin Harrison / @BarbaricSaint

08/23/2017 at 05:48PM

11
#3491 - Rachel Murray / @RachelMurray11

08/28/2017 at 11:53AM

11
#3492 - Geoff / @RealGeoffErwin

09/28/2017 at 07:06PM

11
#3493 - Enrico Bandiera / @GudoKing

10/08/2017 at 08:06PM

11
#3494 - Steve Lemuel / @Steve_Lemuel

12/20/2017 at 03:37PM

11
#3495 - 笹木 信吾 / @Sa2Knight

01/25/2018 at 12:54PM

11
#3496 - BitLad / @BitLad

01/31/2018 at 03:31PM

11
#3497 - Amanj Sherwany / @amanjpro

03/04/2018 at 06:21PM

11
#3498 - Akilan Anbalagan / @akilananb

03/26/2018 at 01:50PM

11
#3499 - ikigai / @ikigai27357012

06/21/2018 at 07:54AM

11
#3500 - archer.kang / @ArcherKang

06/27/2018 at 04:09AM

11
#3501 - Eric Man / @ericmanlol

07/01/2018 at 03:35PM

11
#3502 - The9ain / @the9ain

08/03/2018 at 02:33AM

11
#3503 - Weston Neal / @wtneal

08/31/2018 at 10:57PM

11
#3504 - Brent Woo / @BrentPWoo

10/01/2018 at 07:45PM

11
#3505 - Jurica / @Jurica34581259

11/14/2018 at 11:27PM

11
#3506 - david@@@@wang / @davidwa86717152

11/16/2018 at 09:32AM

11
#3507 - nykisoji / @nykisoji

01/14/2019 at 12:04PM

11
#3508 - MGJoe93 / @mgjoe93

03/02/2019 at 06:04PM

11
#3509 - Ashley Harvey / @ashleyharvey87

03/07/2019 at 09:19PM

11
#3510 - Mike C / @StrixVariaXIX

04/22/2019 at 04:00PM