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

4206 active golfers, 11477 entries

Leaderboard (lowest score wins):
10
#3871 - Justin Or / @just_in_awe

07/04/2020 at 04:59AM

10
#3872 - Alejandro / @AlejandroE

07/19/2020 at 04:48PM

10
#3873 - drGsus / @drGsus

07/25/2020 at 06:30AM

10
#3874 - Christ / @Christ46234422

09/06/2020 at 12:15AM

10
#3875 - vimgolfer98746521 / @vimgolfer987461

09/06/2020 at 03:46PM

10
#3876 - Pat Haggerty / @HaggertyPat

09/09/2020 at 02:15PM

10
#3877 - Muradil / @MuradilUdun

10/21/2020 at 04:02PM

10
#3878 - Demian Martinez / @demianuco

11/01/2020 at 11:37PM

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

11/15/2020 at 04:32PM

10
#3880 - Brye Walker / @bryewalks

11/28/2020 at 11:32PM

10
#3881 - said / @said13664960

12/15/2020 at 10:23PM

10
#3882 - Bob / @Bob25621943

12/17/2020 at 05:03PM

10
#3883 - Gunter Kluge / @KlugeGunter

01/04/2021 at 02:15PM

10
#3884 - Scott Traver / @ScottTraver

01/12/2021 at 10:41PM

10
#3885 - fff / @fff51460170

01/13/2021 at 02:53AM

10
#3886 - Ronen Lahat / @Ronenl

01/19/2021 at 11:50AM

10
#3887 - Martin LOUAZEL / @Zbrahark

02/18/2021 at 02:52PM

10
#3888 - deusthe / @deusthe91

12/16/2021 at 08:35PM

10
#3889 - サイシ / @tairar_314

05/08/2022 at 09:44PM

10
#3890 - Sahil Shetty / @sahildshetty

09/10/2022 at 01:14AM

10
#3891 - Sathyanarayanan Vaithianathan / @Sathyan88697115

09/12/2022 at 04:35AM

10
#3892 - wuwubean / @wuwubean

04/18/2024 at 10:29PM

10
#3893 - KhaAdam / @KhaAdam

08/07/2024 at 02:21PM

10
#3894 - edoelas / @edoelas

09/06/2024 at 07:43AM

10
#3895 - svsreerama / @svsreerama

12/28/2024 at 06:46PM

11
#3896 - Julien Sabotage / @anerdwithaknife

12/19/2014 at 09:54PM

11
#3897 - Eric Biven / @EricBiven

12/31/2014 at 08:03PM

11
#3898 - manish mishra / @manishrdmishra

01/12/2015 at 11:33PM

11
#3899 - Giorgio / @Gpx

01/19/2015 at 06:38PM

11
#3900 - gnobbles / @gnobbles

01/22/2015 at 02:41AM