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

3903 active golfers, 10559 entries

Leaderboard (lowest score wins):
8
#2341 - moritz / @moritz45081535

06/18/2017 at 01:03PM

8
#2342 - Scott Mills / @smm1729

06/20/2017 at 11:30PM

8
#2343 - Ezra Zigmond / @ezrazig

06/21/2017 at 06:43PM

8
#2344 - Matt Fister / @Mistah_Fistah

06/23/2017 at 01:48AM

8
#2345 - Ryan McNamara / @MadDogMcNamara

06/23/2017 at 07:21AM

8
#2346 - el pollo diablo / @bjagojevich

06/24/2017 at 02:52AM

8
#2347 - YamasakiKenta / @ymknjugg

06/24/2017 at 08:28AM

8
#2348 - Pfhor / @PfhorShark

06/25/2017 at 08:46PM

8
#2349 - Etai Nativ / @enativ72

06/27/2017 at 11:17AM

8
#2350 - Joseph Satterfield™ / @joejsatterfield

06/29/2017 at 06:20PM

8
#2351 - Kieron Browne / @KieronBrowne1

06/29/2017 at 07:21PM

8
#2352 - Tom Taylor / @larsonsduck

07/03/2017 at 03:18PM

8
#2353 - Julian Felix / @h4wked

07/04/2017 at 02:05PM

8
#2354 - Paweł Styczewski / @kryspuss

07/05/2017 at 01:05PM

8
#2355 - grigouille / @grigouille2

07/06/2017 at 11:34AM

8
#2356 - Gurukandhamoorthi / @Gurukandhamoor1

07/09/2017 at 02:04PM

8
#2357 - Jon Barker / @j0nbarker

07/12/2017 at 05:55PM

8
#2358 - kkh / @kkhdlut

07/16/2017 at 07:09AM

8
#2359 - 黒澤亮二 / @rjkuro

07/19/2017 at 11:34AM

8
#2360 - Etienne Dilocker / @etiennedi

07/20/2017 at 06:52PM

8
#2361 - Rowan Tree / @RowanTr88447528

07/21/2017 at 09:41AM

8
#2362 - Preben Guldberg / @wielder

07/23/2017 at 10:18PM

8
#2363 - Nick Johnstone / @widdnz

07/24/2017 at 11:36PM

8
#2364 - Maksim / @mitsuigh

07/25/2017 at 08:11AM

8
#2365 - Anne Pacalet / @_Anne_P

07/27/2017 at 10:34AM

8
#2366 - Netznarkose / @netznarkose

07/27/2017 at 08:48PM

8
#2367 - Vedro / @Vedro03557622

07/27/2017 at 10:10PM

8
#2368 - adeel hussain / @adeelhussain

07/29/2017 at 02:50PM

8
#2369 - Adam Matan / @adam_matan

07/31/2017 at 04:16PM

8
#2370 - puyisetev / @puyisetev

08/02/2017 at 10:38AM