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

4232 active golfers, 11546 entries

Leaderboard (lowest score wins):
9
#3541 - sahin sarkar / @MdsameemSarkar

10/16/2017 at 03:41PM

9
#3542 - Amy Lim / @chasingkytes

10/21/2017 at 07:19PM

9
#3543 - Philippe / @cloonn1

11/03/2017 at 08:51PM

9
#3544 - Ruben De Smet / @rubdos

11/08/2017 at 06:23PM

9
#3545 - Carl Ward / @doncarlos999

12/02/2017 at 02:30PM

9
#3546 - José M. Guisado / @_jmgg_

12/15/2017 at 04:54PM

9
#3547 - Brennan Minns / @Minns_Brennan

12/18/2017 at 01:49PM

9
#3548 - Elias Åström / @ryvnfn

12/26/2017 at 06:07PM

9
#3549 - umnikos / @umnikos

01/07/2018 at 04:30PM

9
#3550 - P. Bogaard / @Pepbogaard

01/21/2018 at 01:03AM

9
#3551 - Mark Blakeney / @bulletmark

02/03/2018 at 11:39PM

9
#3552 - Austin Ware / @AustinWare17

03/12/2018 at 06:02PM

9
#3553 - Shirley Lin / @xshirleylin

03/15/2018 at 09:30PM

9
#3554 - MrMatuski / @MrMatuski

03/22/2018 at 01:41PM

9
#3555 - sdaf sdf / @fooz0b1bz

03/24/2018 at 03:12PM

9
#3556 - Ruby / @Rubzk

03/26/2018 at 03:16AM

9
#3557 - Anonymous / @Anonymous31658

03/27/2018 at 03:27AM

9
#3558 - Михаил Фуфин / @MishaFufin

04/03/2018 at 06:30PM

9
#3559 - Nicolás Salas V. / @nicosalasv

04/09/2018 at 05:05AM

9
#3560 - (Tocci.Sakai とっちさん) / @tocci3

04/11/2018 at 02:58AM

9
#3561 - amal / @cdsudama

04/11/2018 at 03:16AM

9
#3562 - yuta takahashi / @tashua314

04/12/2018 at 06:43AM

9
#3563 - Erick Sepúlveda / @ericksepu

04/12/2018 at 03:28PM

9
#3564 - Oliver G. / @Redbrain18

04/30/2018 at 07:34PM

9
#3565 - Tom / @atomgrand

05/03/2018 at 05:41PM

9
#3566 - Endre Galaczi / @galacziendre

05/04/2018 at 01:07PM

9
#3567 - Nathanael / @ngsilverman

05/09/2018 at 04:04AM

9
#3568 - Wasistdasfuer1Welt / @Wasistdasfuer1W

05/14/2018 at 11:17AM

9
#3569 - のあ / @2KDOyv849VQrBHT

05/21/2018 at 03:18PM

9
#3570 - tue2truong / @tue2truong1

05/25/2018 at 01:30PM