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

4215 active golfers, 11497 entries

Leaderboard (lowest score wins):
9
#3511 - Lukas Galke / @_lpag

05/31/2017 at 09:02PM

9
#3512 - gsaga / @gsaga7

06/02/2017 at 04:42PM

9
#3513 - Adam Bozanich / @abozanich

06/08/2017 at 02:21AM

9
#3514 - drumm.in / @drumminapp

06/29/2017 at 10:21PM

9
#3515 - Adrian Staniec / @adrianstaniec

08/05/2017 at 09:34AM

9
#3516 - m00t-lab / @M00tL

08/05/2017 at 06:04PM

9
#3517 - ふぁぼ☆りょっぴ / @tak_jmo6928

08/14/2017 at 03:19AM

9
#3518 - Method Zero / @Mordini

08/20/2017 at 10:54PM

9
#3519 - irene / @IreneReps

08/23/2017 at 01:51AM

9
#3520 - Octave Crespel / @OCrespel

08/27/2017 at 04:43PM

9
#3521 - Steven Carr / @StevenC88925660

09/14/2017 at 06:39PM

9
#3522 - Graham Bates / @gigabates

09/16/2017 at 09:07PM

9
#3523 - Daniel / @djacobs7

09/28/2017 at 04:50PM

9
#3524 - Ty Wince / @tylerwince

09/28/2017 at 09:37PM

9
#3525 - Asheq / @TwoMegaOhms

09/28/2017 at 10:44PM

9
#3526 - Joachim Nielandt / @joachimnielandt

09/30/2017 at 04:17PM

9
#3527 - ؜ / @h43z

09/30/2017 at 08:11PM

9
#3528 - Romeo Valentin / @Seecez

10/10/2017 at 04:02PM

9
#3529 - Andrew Whitaker / @andrewwhitaker

10/13/2017 at 02:58PM

9
#3530 - sahin sarkar / @MdsameemSarkar

10/16/2017 at 03:41PM

9
#3531 - Amy Lim / @chasingkytes

10/21/2017 at 07:19PM

9
#3532 - Philippe / @cloonn1

11/03/2017 at 08:51PM

9
#3533 - Ruben De Smet / @rubdos

11/08/2017 at 06:23PM

9
#3534 - Carl Ward / @doncarlos999

12/02/2017 at 02:30PM

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

12/15/2017 at 04:54PM

9
#3536 - Brennan Minns / @Minns_Brennan

12/18/2017 at 01:49PM

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

12/26/2017 at 06:07PM

9
#3538 - umnikos / @umnikos

01/07/2018 at 04:30PM

9
#3539 - P. Bogaard / @Pepbogaard

01/21/2018 at 01:03AM

9
#3540 - Mark Blakeney / @bulletmark

02/03/2018 at 11:39PM