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

4144 active golfers, 11289 entries

Leaderboard (lowest score wins):
7
#661 - Peter Labus / @PeterLabus

06/21/2016 at 10:00PM

7
#662 - Averell Dalton / @webtwoosucks

06/25/2016 at 05:19PM

7
#663 - Davide / @DvdMgr

06/27/2016 at 01:08PM

7
#664 - Vaisian / @Vaisian

07/05/2016 at 09:34PM

7
#665 - Tai Le / @letientai299

07/07/2016 at 06:10AM

7
#666 - Alejandro Claro / @alejandroclaro

07/12/2016 at 12:21AM

7
#667 - Girish Gokul / @girishgoku

07/14/2016 at 04:00AM

7
#668 - Pavol Slamka / @Archipedes

07/15/2016 at 09:45PM

7
#669 - herbage / @herbage2

07/16/2016 at 12:18PM

7
#670 - Martin Tõnusoo / @martintonusoo

07/17/2016 at 01:18PM

7
#671 - PeterGC / @petkusGC

07/17/2016 at 07:43PM

7
#672 - Nikita Danilov / @Mirt_ru

07/18/2016 at 09:00AM

7
#673 - Arnar Thor / @sirAgiz

07/19/2016 at 01:57AM

7
#674 - Sandeep Dhavale / @sandeep_dhavale

07/19/2016 at 10:13PM

7
#675 - Alonzo / @tolver_a

07/21/2016 at 03:54PM

7
#676 - Benedikt Breinbauer / @benebun

07/24/2016 at 05:32PM

7
#677 - Richard O'Brien / @richard0b

07/29/2016 at 11:09PM

7
#678 - hyhit / @hyhit2

08/01/2016 at 06:02AM

7
#679 - Jake Maul / @jake_maul

08/03/2016 at 06:00PM

7
#680 - Restroom Sounds / @RestroomSounds

08/04/2016 at 03:23PM

7
#681 - byte_kgd / @byte_kgd

08/10/2016 at 04:48PM

7
#682 - William Robson / @wnrbs

08/11/2016 at 08:55PM

7
#683 - Jordan Wightman / @tuo2

08/13/2016 at 11:16AM

7
#684 - Nabarun Chatterjee / @nabarunch

08/16/2016 at 05:30PM

7
#685 - swarkEafs / @EafsSwark

08/17/2016 at 08:19AM

7
#686 - jaresty / @jaresty

08/18/2016 at 05:59PM

7
#687 - Jason Olson / @jolson88

08/19/2016 at 11:33AM

7
#688 - Winfried Puchinger / @winpuc

08/19/2016 at 08:41PM

7
#689 - Stanislav / @prstad

08/22/2016 at 10:27AM

7
#690 - Michael Brailsford / @brailsmt

08/22/2016 at 04:57PM