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):
10
#3781 - Martin Huter / @marhat87

01/31/2020 at 12:22PM

10
#3782 - Kairew / @Kairew1

02/17/2020 at 02:14PM

10
#3783 - Bitt Faulk / @bittfaulk

02/18/2020 at 09:58PM

10
#3784 - 十郎☔ / @juro106

04/13/2020 at 09:36AM

10
#3785 - volandkit / @volandkit

04/20/2020 at 05:24PM

10
#3786 - Axel / @Axel07930943

05/05/2020 at 06:42AM

10
#3787 - Sebastian / @dersharky

05/13/2020 at 03:27PM

10
#3788 - Lukasz Anforowicz / @LAnforowicz

05/27/2020 at 04:44AM

10
#3789 - Patrick Weigert / @PatrickWeigert

06/01/2020 at 02:21AM

10
#3790 - shkwon / @shkwon10

06/16/2020 at 12:56PM

10
#3791 - Mellow Tractor / @mellowtractor

06/19/2020 at 03:14PM

10
#3792 - ithirty / @ithirty4

06/23/2020 at 10:54AM

10
#3793 - Justin Or / @just_in_awe

07/04/2020 at 04:59AM

10
#3794 - Alejandro / @AlejandroE

07/19/2020 at 04:48PM

10
#3795 - drGsus / @drGsus

07/25/2020 at 06:30AM

10
#3796 - Christ / @Christ46234422

09/06/2020 at 12:15AM

10
#3797 - vimgolfer98746521 / @vimgolfer987461

09/06/2020 at 03:46PM

10
#3798 - Pat Haggerty / @HaggertyPat

09/09/2020 at 02:15PM

10
#3799 - Muradil / @MuradilUdun

10/21/2020 at 04:02PM

10
#3800 - Demian Martinez / @demianuco

11/01/2020 at 11:37PM

10
#3801 - just here to scroll. / @idontknow0001

11/15/2020 at 04:32PM

10
#3802 - Brye Walker / @bryewalks

11/28/2020 at 11:32PM

10
#3803 - said / @said13664960

12/15/2020 at 10:23PM

10
#3804 - Bob / @Bob25621943

12/17/2020 at 05:03PM

10
#3805 - Gunter Kluge / @KlugeGunter

01/04/2021 at 02:15PM

10
#3806 - Scott Traver / @ScottTraver

01/12/2021 at 10:41PM

10
#3807 - fff / @fff51460170

01/13/2021 at 02:53AM

10
#3808 - Ronen Lahat / @Ronenl

01/19/2021 at 11:50AM

10
#3809 - Martin LOUAZEL / @Zbrahark

02/18/2021 at 02:52PM

10
#3810 - deusthe / @deusthe91

12/16/2021 at 08:35PM