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

3213 active golfers, 8583 entries

Leaderboard (lowest score wins):
7
#331 - Noud Speijcken / @noudspeijcken

06/19/2015 at 02:40PM

7
#332 - Bradley Tse / @bradleytse

06/19/2015 at 06:39PM

7
#333 - Leon Johannessen / @2o

06/20/2015 at 09:18AM

7
#334 - stepvhen / @stepvhen_web

06/20/2015 at 01:24PM

7
#335 - Maxime / @Maxime_VII

06/23/2015 at 12:55PM

7
#336 - Andres Manz / @manz_andres

06/23/2015 at 10:43PM

7
#337 - Corey Quinn / @QuinnyPig

06/24/2015 at 05:41AM

7
#338 - ~^(;,;)^~ Badger / @drksvnt

06/25/2015 at 10:11AM

7
#339 - DocThor Neuland / @DocThorNeuland

06/25/2015 at 06:42PM

7
#340 - mateon1 / @mateon1

06/27/2015 at 04:27PM

7
#341 - Adrian Krehl / @akrehl

06/29/2015 at 03:33PM

7
#342 - Andrew / @vimGolfAndrew

07/02/2015 at 08:58PM

7
#343 - emanuele francioni / @Autholykos

07/05/2015 at 02:20PM

7
#344 - Mike / @creatre

07/06/2015 at 11:50PM

7
#345 - Louis Burke / @LambdaABeta

07/07/2015 at 05:24PM

7
#346 - Elizabeth / @sprinkles418

07/07/2015 at 06:22PM

7
#347 - teilersumme / @teilersumme

07/08/2015 at 08:25PM

7
#348 - David Willming / @wdialvmeo

07/09/2015 at 04:37AM

7
#349 - Barthelemy Dagenais / @bartdag

07/10/2015 at 01:15PM

7
#350 - Dominique van de Vor / @dvdvorle

07/14/2015 at 08:25PM

7
#351 - Milind Ganjoo / @mganjoo

07/16/2015 at 09:09PM

7
#352 - S.Lebedev / @drasgo

07/17/2015 at 10:11AM

7
#353 - José Rodrigues / @jyrodrigues

07/18/2015 at 12:16AM

7
#354 - Mike Bannister / @possibilities

07/20/2015 at 05:53AM

7
#355 - Vincent Yu / @vyuniverse

07/22/2015 at 02:42AM

7
#356 - Manuel Haas / @uf_manuel

07/22/2015 at 03:33PM

7
#357 - Maxim Prokopenko / @max1cp

07/22/2015 at 05:10PM

7
#358 - Jeanno / @JeannoHS

07/24/2015 at 08:28AM

7
#359 - Quark / @PuzzleQuark

07/25/2015 at 09:03PM

7
#360 - Ásgeir Bjarnason / @abjarnasn

07/25/2015 at 09:55PM