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
#421 - meribold / @mribld

09/25/2015 at 01:19PM

7
#422 - Hesh / @heshihao

09/26/2015 at 05:18PM

7
#423 - Felix Maxwell / @felix_maxwell

09/26/2015 at 10:03PM

7
#424 - Mike Adams / @davis_cromwell

09/26/2015 at 10:25PM

7
#425 - Andreas Carben / @meiner_eins

09/27/2015 at 01:07PM

7
#426 - Self Doc Code / @self_doc_code

09/27/2015 at 07:14PM

7
#427 - Joel N. / @cboar_

09/28/2015 at 12:16AM

7
#428 - Kevin Ilphrin Pellet / @KevinIlphrin

09/28/2015 at 12:24PM

7
#429 - Jon Krause / @jkrause314

09/28/2015 at 05:15PM

7
#430 - Ali Moeeny / @alimoeeny

09/30/2015 at 06:18PM

7
#431 - 이 철희 / @leechulhee95

10/01/2015 at 01:32AM

7
#432 - Ilya / @izubk0v

10/01/2015 at 06:21AM

7
#433 - Bjarni Þórisson / @hurrumanni

10/01/2015 at 04:22PM

7
#434 - Daniel Beck / @daniel_beck_il

10/02/2015 at 03:45PM

7
#435 - ardila.d.ardila / @ardiladardila1

10/02/2015 at 04:50PM

7
#436 - Alexander Schlüter / @ArlecksHunt

10/02/2015 at 11:19PM

7
#437 - Darren Tsung / @darrentsung

10/02/2015 at 11:47PM

7
#438 - Manel / @manel_velasco

10/03/2015 at 09:58PM

7
#439 - compuserved / @compuserved

10/04/2015 at 12:35AM

7
#440 - fake geek guy / @light_rook

10/04/2015 at 08:34AM

7
#441 - Joakim Andersson / @Th4Clown

10/04/2015 at 08:45AM

7
#442 - ojung / @oskrjung

10/04/2015 at 08:58AM

7
#443 - Alexander / @azaharakis

10/07/2015 at 07:14AM

7
#444 - Piotr Kowenzowski / @sacherus

10/07/2015 at 08:29PM

7
#445 - Domingue Justin / @_jdomingue

10/08/2015 at 05:23PM

7
#446 - LordFoom / @LordFoom

10/09/2015 at 09:10AM

7
#447 - Sean Johnston / @esran

10/09/2015 at 10:25AM

7
#448 - Perry van Schaijk / @PvSchaijk

10/09/2015 at 11:25AM

7
#449 - Chris Jordan / @chrisjordan_uk

10/09/2015 at 04:21PM

7
#450 - Artur Taranchiev / @ewokru

10/10/2015 at 09:09AM