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

4213 active golfers, 11494 entries

Leaderboard (lowest score wins):
10
#3691 - March / @M2March

03/26/2015 at 06:27PM

10
#3692 - Jacob Degeling / @JacobDegeling

03/28/2015 at 09:18AM

10
#3693 - Jeff Parent / @jeffparent

04/23/2015 at 09:53PM

10
#3694 - chvzvhn / @chvzvhn

04/25/2015 at 11:01PM

10
#3695 - Marc-Antoine Sauvé / @masauve_ac

04/26/2015 at 10:46PM

10
#3696 - Seph Newman / @SephNewman

05/10/2015 at 08:26AM

10
#3697 - vimgolf11 / @vimgolf11

05/13/2015 at 09:55AM

10
#3698 - Henrik Lindgren / @HeLi8one

05/17/2015 at 03:34PM

10
#3699 - andrea cedraro / @vheon

05/21/2015 at 07:22PM

10
#3700 - Rui Duraes / @rui_duraes

05/23/2015 at 04:05PM

10
#3701 - ɹǝsnɐɥsıʇnɹ uoɾ / @JonRutis

05/27/2015 at 06:26PM

10
#3702 - クロード / @Crawd

05/28/2015 at 04:08AM

10
#3703 - Wei Fu / @fhfuwei

05/28/2015 at 06:38AM

10
#3704 - eric roberts / @baileyeock

05/29/2015 at 01:23AM

10
#3705 - Wlad / @wladston

06/05/2015 at 03:21PM

10
#3706 - 自称相談役 / @Zisyou_Adviser

06/06/2015 at 10:20PM

10
#3707 - Nick Tikhonov / @nick_tikhonov

06/08/2015 at 10:49PM

10
#3708 - Douglas Detoni / @douglas_detoni

06/19/2015 at 04:55PM

10
#3709 - Mhd Ali / @MhdAli_

06/22/2015 at 02:22PM

10
#3710 - Guillaume / @arteymix

06/24/2015 at 04:35AM

10
#3711 - Ted Reed / @treed

06/24/2015 at 06:35AM

10
#3712 - Jon Featherstone / @feathj

06/25/2015 at 02:39AM

10
#3713 - Maxim Gladkih / @gladkih_m

07/02/2015 at 09:47AM

10
#3714 - Brandon Milam / @jbmilam950

07/07/2015 at 12:21AM

10
#3715 - Ray / @HaskRay

07/08/2015 at 04:54PM

10
#3716 - DJ Lee / @deej337

07/17/2015 at 09:52PM

10
#3717 - Jose Mari Consador / @joseconsador

07/22/2015 at 03:20AM

10
#3718 - Florian Lücke / @CannibalGorilla

07/22/2015 at 08:09AM

10
#3719 - Rory McGloin / @RoryMcGloin

07/24/2015 at 05:42PM

10
#3720 - McKay Ward / @mckayward

07/25/2015 at 09:11PM