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

3357 active golfers, 8983 entries

Leaderboard (lowest score wins):
7
#481 - Marshall Croes / @marshallcroes

11/08/2015 at 12:34AM

7
#482 - KNX32542 / @kawinnikom

11/08/2015 at 06:33PM

7
#483 - Curt Matz / @sitrucz

11/11/2015 at 01:02PM

7
#484 - Phil Ting / @philipjting

11/12/2015 at 06:29AM

7
#485 - Get Sharp / @get_Sh4rp

11/15/2015 at 05:08AM

7
#486 - Cory Duplantis / @ctfhacker

11/16/2015 at 12:09AM

7
#487 - iershov / @thorny_hamster

11/18/2015 at 12:39AM

7
#488 - Jayce Higgins / @HigginsJayce

11/19/2015 at 04:56PM

7
#489 - Valery / @MrComBin

11/20/2015 at 08:39AM

7
#490 - AD / @Lievr0

11/21/2015 at 03:39AM

7
#491 - JoeyLyn / @JJoofk

11/21/2015 at 06:21PM

7
#492 - thejojo87 / @thejojo1987

11/22/2015 at 02:17PM

7
#493 - chris nojima / @chrisnojima

11/23/2015 at 12:36AM

7
#494 - Angus McInnes / @eigenstuff

11/24/2015 at 10:01AM

7
#495 - Silvio Dante / @FlightWhite77

11/25/2015 at 11:32AM

7
#496 - Kaue Silveira / @kssilveira

11/25/2015 at 10:57PM

7
#497 - Mike Krason / @mfkrason

11/26/2015 at 01:38AM

7
#498 - EatYourGreens / @VimTwo

11/26/2015 at 07:45PM

7
#499 - Darius Smaliukas / @daraz999

11/27/2015 at 06:59PM

7
#500 - Justin Harjanto / @YouGotOwnedGirl

11/27/2015 at 07:55PM

7
#501 - Casey Pearring / @StandardBias

11/27/2015 at 08:37PM

7
#502 - Tommy Wu / @TommyJSWu

11/28/2015 at 09:01PM

7
#503 - kleiduif / @bertwinwubs

11/28/2015 at 11:57PM

7
#504 - Aaron Blair / @sycrat

11/29/2015 at 12:46PM

7
#505 - Marko Marulic / @loneloss

11/30/2015 at 05:37PM

7
#506 - Ruth Earle / @ruth_earle

11/30/2015 at 08:41PM

7
#507 - Bruno Vieira Costa / @bruno_vcosta

11/30/2015 at 10:13PM

7
#508 - Alain / @ducouloa

12/01/2015 at 08:32PM

7
#509 - Pure OG Kush / @mcnuggies420

12/01/2015 at 09:38PM

7
#510 - mahmoud mahfouz / @mahmoud_zaza

12/02/2015 at 07:53PM