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):
11
#3841 - kaudummi / @kaudummi

11/24/2015 at 07:33PM

11
#3842 - Chris Grantham / @crgrantham

12/14/2015 at 04:39PM

11
#3843 - Daniel Suh / @18kehops

01/31/2016 at 10:36AM

11
#3844 - Wolfe / @InteriorWolfe

02/26/2016 at 04:38PM

11
#3845 - Matthew J. Christ / @mjchrist9

06/15/2016 at 12:55PM

11
#3846 - Justin Wyne / @wyne

07/19/2016 at 03:57AM

11
#3847 - Micha / @michman89

08/07/2016 at 03:03PM

11
#3848 - Patrick J McDonough / @snake_VsCamel

09/05/2016 at 03:47AM

11
#3849 - Batuhan Bayrakçı / @bay_batu

09/16/2016 at 09:50AM

11
#3850 - Allen Gooch / @mojochao

09/18/2016 at 10:18PM

11
#3851 - Faded Song / @fadedsong0

10/06/2016 at 03:51AM

11
#3852 - Daniel Ekelund / @daniel_ekelund

12/08/2016 at 08:16PM

11
#3853 - Alex Moorman / @dabearsxander

01/06/2017 at 03:16AM

11
#3854 - Matt Walsh / @wattmalsh

01/21/2017 at 08:35PM

11
#3855 - Adam Wilbraham / @Wilbatron

04/23/2017 at 08:27PM

11
#3856 - John Doe Jr / @bf4648

06/04/2017 at 05:48AM

11
#3857 - Austin Harrison / @BarbaricSaint

08/23/2017 at 05:48PM

11
#3858 - Rachel Murray / @RachelMurray11

08/28/2017 at 11:53AM

11
#3859 - Geoff / @RealGeoffErwin

09/28/2017 at 07:06PM

11
#3860 - Enrico Bandiera / @GudoKing

10/08/2017 at 08:06PM

11
#3861 - Steve Lemuel / @Steve_Lemuel

12/20/2017 at 03:37PM

11
#3862 - 笹木 信吾 / @Sa2Knight

01/25/2018 at 12:54PM

11
#3863 - BitLad / @BitLad

01/31/2018 at 03:31PM

11
#3864 - Amanj Sherwany / @amanjpro

03/04/2018 at 06:21PM

11
#3865 - Akilan Anbalagan / @akilananb

03/26/2018 at 01:50PM

11
#3866 - ikigai / @ikigai27357012

06/21/2018 at 07:54AM

11
#3867 - archer.kang / @ArcherKang

06/27/2018 at 04:09AM

11
#3868 - Eric Man / @ericmanlol

07/01/2018 at 03:35PM

11
#3869 - The9ain / @the9ain

08/03/2018 at 02:33AM

11
#3870 - Weston Neal / @wtneal

08/31/2018 at 10:57PM