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

4231 active golfers, 11545 entries

Leaderboard (lowest score wins):
10
#3901 - Gunter Kluge / @KlugeGunter

01/04/2021 at 02:15PM

10
#3902 - Scott Traver / @ScottTraver

01/12/2021 at 10:41PM

10
#3903 - fff / @fff51460170

01/13/2021 at 02:53AM

10
#3904 - Ronen Lahat / @Ronenl

01/19/2021 at 11:50AM

10
#3905 - Martin LOUAZEL / @Zbrahark

02/18/2021 at 02:52PM

10
#3906 - deusthe / @deusthe91

12/16/2021 at 08:35PM

10
#3907 - ヒトシ / @tairar_314

05/08/2022 at 09:44PM

10
#3908 - Sahil Shetty / @sahildshetty

09/10/2022 at 01:14AM

10
#3909 - Sathyanarayanan Vaithianathan / @Sathyan88697115

09/12/2022 at 04:35AM

10
#3910 - wuwubean / @wuwubean

04/18/2024 at 10:29PM

10
#3911 - KhaAdam / @KhaAdam

08/07/2024 at 02:21PM

10
#3912 - edoelas / @edoelas

09/06/2024 at 07:43AM

10
#3913 - svsreerama / @svsreerama

12/28/2024 at 06:46PM

10
#3914 - Taylor Allred / @tcallred

04/24/2025 at 06:36PM

11
#3915 - Julien Sabotage / @anerdwithaknife

12/19/2014 at 09:54PM

11
#3916 - Eric Biven / @EricBiven

12/31/2014 at 08:03PM

11
#3917 - manish mishra / @manishrdmishra

01/12/2015 at 11:33PM

11
#3918 - Giorgio / @Gpx

01/19/2015 at 06:38PM

11
#3919 - gnobbles / @gnobbles

01/22/2015 at 02:41AM

11
#3920 - Tomi Savolainen / @tomi_savolainen

01/23/2015 at 02:32PM

11
#3921 - 沸腾钢 / @tobecloud

02/08/2015 at 10:02AM

11
#3922 - Camilla / @MsFaceless

02/11/2015 at 05:58AM

11
#3923 - wilddog64 / @chengkai318

02/11/2015 at 11:00PM

11
#3924 - OlivierLi / @LiZhongSin

02/16/2015 at 08:30PM

11
#3925 - Dmitry Zudochkin / @zudochkin

02/17/2015 at 07:37PM

11
#3926 - Pierre / @_coaxial

02/23/2015 at 07:16PM

11
#3927 - Max Rahm / @ac90b671

03/12/2015 at 10:07PM

11
#3928 - Aria / @AriaMoKr

03/12/2015 at 10:51PM

11
#3929 - luiz agostinho / @variom_br

03/16/2015 at 01:24PM

11
#3930 - Khalid Harun / @KhalidHarun

03/19/2015 at 05:25AM