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

4214 active golfers, 11496 entries

Leaderboard (lowest score wins):
8
#3091 - Coded / @coded_nz

08/03/2020 at 04:18AM

8
#3092 - GenericHardwareGamer / @GnrikHrdwrGamer

08/05/2020 at 11:19AM

8
#3093 - Vinay Sharma / @VinaySh63956554

08/08/2020 at 06:26PM

8
#3094 - David Martínez / @g0ddrinksjava

08/08/2020 at 07:34PM

8
#3095 - Du Phan / @fehiepsi

08/10/2020 at 05:32AM

8
#3096 - mindgitrwx / @mindgitrwx

08/10/2020 at 01:56PM

8
#3097 - Martin Kauppinen / @MartinKauppinen

08/15/2020 at 11:20AM

8
#3098 - Ravi S Sinha / @ambidextrousTx

08/17/2020 at 10:51PM

8
#3099 - Muhsin AbdulMohammed / @muhsin____

08/18/2020 at 03:35PM

8
#3100 - elroylee / @elroylee11

08/23/2020 at 12:08AM

8
#3101 - fenn.stefan@gmail.com / @FennStefan

08/25/2020 at 01:29PM

8
#3102 - Art / @Art80615229

08/27/2020 at 09:53PM

8
#3103 - Nauma A. / @nauma_a

08/31/2020 at 04:17AM

8
#3104 - Robert Verst / @r_verst

09/01/2020 at 02:00PM

8
#3105 - Luc Kien Hang / @luckienhang

09/04/2020 at 12:41AM

8
#3106 - JP / @JP16366170

09/08/2020 at 11:46AM

8
#3107 - Christian Mösl / @ChristianMoesl

09/11/2020 at 08:50PM

8
#3108 - Kurt Keller / @KurtKeller

09/16/2020 at 09:00PM

8
#3109 - will / @willpnw

09/25/2020 at 02:12AM

8
#3110 - gandhiisback / @gandhiisback1

09/28/2020 at 06:22PM

8
#3111 - 伟哥 / @w15659018558

09/29/2020 at 07:45AM

8
#3112 - Brendan Schaenzer / @bschaenzer

09/29/2020 at 07:33PM

8
#3113 - Vildu / @Vildu3

09/30/2020 at 08:53AM

8
#3114 - BryanYan / @BryanGoesPlaces

09/30/2020 at 09:13AM

8
#3115 - mstronam / @mstronam

10/02/2020 at 03:00AM

8
#3116 - teu cu / @j4derr

10/02/2020 at 05:40PM

8
#3117 - vim-golf-requirement / @VRequirement

10/06/2020 at 03:38PM

8
#3118 - 𝗙 ▲ 𝗥 𝗜 𝗦 𝗦 / @APsockes

10/08/2020 at 12:17AM

8
#3119 - lamtt77 / @lamtt77

10/08/2020 at 06:34AM

8
#3120 - AAbraxas / @AAbraxas1

10/08/2020 at 07:52PM