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
#3751 - andrwyoung / @andrwyoung1

03/04/2019 at 07:20PM

10
#3752 - The Joe / @computerjoe708

03/17/2019 at 04:30PM

10
#3753 - EarthToAbigail / @EarthAbigail

04/02/2019 at 06:21AM

10
#3754 - Banner B. Schafer / @BannerBSchafer

04/08/2019 at 04:08AM

10
#3755 - ytrxc38754975 / @royaso

04/12/2019 at 06:51AM

10
#3756 - Emanuele Aliverti / @memeAliverti

04/23/2019 at 06:36PM

10
#3757 - Zac / @zac_r_

04/25/2019 at 02:03PM

10
#3758 - James Stidard / @JamesStidard

05/05/2019 at 11:22PM

10
#3759 - YesSwear / @yesswore

05/20/2019 at 02:57PM

10
#3760 - JonasS / @jonas42s

05/29/2019 at 09:59AM

10
#3761 - albalitz / @_albalitz

06/04/2019 at 03:53PM

10
#3762 - ほた / @hota1024

06/11/2019 at 09:43AM

10
#3763 - ゆうこ / @any23710

06/13/2019 at 10:46AM

10
#3764 - Erik Larsson / @Ermigh

06/18/2019 at 10:16PM

10
#3765 - Zachary Cetinic / @Swervenstuff

06/19/2019 at 06:55PM

10
#3766 - コータ=ザッカーバーグ / @kota_zuckerberg

08/10/2019 at 07:13PM

10
#3767 - Kamil Rocki / @rockikamil

08/14/2019 at 06:23AM

10
#3768 - 浚宇 / @Junyu_Wang_cn

08/14/2019 at 03:44PM

10
#3769 - Charlie Pai / @charlie_pai

08/22/2019 at 11:34PM

10
#3770 - Riftere / @riftere11

08/30/2019 at 07:37PM

10
#3771 - Yabūchi Takeshi / @WhiteKyoto

09/10/2019 at 10:41AM

10
#3772 - Ioannis Cherouvim / @cherouvim

09/10/2019 at 07:47PM

10
#3773 - Temp / @San5nom

10/02/2019 at 06:45PM

10
#3774 - Frederich Stine / @FrederichStine

10/22/2019 at 06:18PM

10
#3775 - ENSORIZATION / @ensorization

11/01/2019 at 11:28PM

10
#3776 - Kyle Mitchell / @jcmkk3

11/10/2019 at 04:42AM

10
#3777 - David / @dalbertom

12/01/2019 at 07:53PM

10
#3778 - 煮沸的白開水 / @season_303030

12/02/2019 at 08:06AM

10
#3779 - Aaron / @_Lordofthevoid_

12/17/2019 at 05:49PM

10
#3780 - うりぼー@エンジニア志望 / @uriuribobo1998

12/22/2019 at 06:14AM